http://www.perlmonks.org?node_id=986125


in reply to Re^2: Hunting for a memory leak
in thread Hunting for a memory leak

Thank you for this. I believe I need to start doubting the CPAN modules a little more.

Tk modules are notorious for leaks -- also , if the module builds any kind of tree, and grepping the source for "weak" returns no hits, 97/100 its leaking :)

Replies are listed 'Best First'.
Re^4: Hunting for a memory leak
by perldough (Sexton) on Aug 08, 2012 at 14:19 UTC

    That's interesting. Would you mind explaining why that is?

    Perldough

      That's interesting. Would you mind explaining why that is?

      Because that is just the way it is :) Trees means circular references (memory leak unless you take some steps), and Tk encourages both circular references and closures -- just look in the bug cue for any Tk- distribution, you'll see lot of reports of leaks