Remove memory function use