Removed memory leak from debug tools.