Plug the biggest part of the memory leak.