Fix extend_heap and mm_free minor errors