Pergunta de entrevista da empresa Digg

How would you keep track of allocated memory?