Plugged a memory leak.