initiating p in mem_free