Patching memory leak.