If you use the nifti_image_free, this will probably fail.