Fix the first memory leak.