Plug potential memory leak.