in reply to Re^5: Memory leak detection
in thread Memory leak detection
There is a second way for objects not getting released that is not really a cyclic reference: If you have a subroutine that closes over a variable, the value of that variable will not get released. This is especially nasty if you're dealing with lots of callbacks (like in AnyEvent) and don't keep track of which callback closes over which variable.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^7: Memory leak detection
by andal (Hermit) on Sep 11, 2014 at 12:20 UTC | |
Re^7: Memory leak detection
by runnerup (Novice) on Sep 12, 2014 at 14:48 UTC | |
by choroba (Cardinal) on Sep 12, 2014 at 16:49 UTC |
In Section
Seekers of Perl Wisdom