fix a bug in mm_free