Simple memory leak checker