Memory leak plugging