Fix up memory leak.