Revert non-working memleak fix.