Remove a memory leak