Remove a memory leak.