in reply to Where are those memory leaks?

Have you tried using Richard Clamp's devel::leaktrace module?