change free call to mm_free