The current implementation of miclose_volume (libsrc2/volume.c), all memory associated with the volume handle is freed already. Same holds for volume properties. So we can not call the mifree_dimension_handle anymore after a call to miclose_volume, since it's been freed already.