Finish the logic of MT_FREE