InvoZone interview question

How do you manage memory manually with malloc/free?