Fix a memory leak.