headfirst: memory leak checking