Pregunta de entrevista de Digg

How would you keep track of allocated memory?