Attempt to fix a memory leak.