Perl-Sensitive Sunglasses | |
PerlMonks |
Re^6: Memory leak detectionby Corion (Patriarch) |
on Sep 11, 2014 at 07:24 UTC ( [id://1100259]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|