Patched memory leak