finish pmalloc