Allocate data just in case when xmp_create_context() is successful
Fix sizeof() decrement