Microsoft Interview Question

How would you manage heap memory for a process to do malloc and free?