in reply to Re^2: "goto" memory leak
in thread "goto" memory leak
there is at least one scope that never releases its memory.
In your original program, yes. It never releases memory, but that memory is still needed. That doesn't meet the definition of a leak.
Keep in mind that the run-time effect of
is similar tomy $i;
Hook::Scope::POST(sub { $i = undef });
It pushes an instruction on the stack to clear the scope on exit (which could happen, say, if an exception occurs).
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: "goto" memory leak
by jethro (Monsignor) on Mar 30, 2016 at 14:24 UTC | |
by dave_the_m (Monsignor) on Mar 30, 2016 at 18:27 UTC | |
by jethro (Monsignor) on Mar 31, 2016 at 13:03 UTC | |
by Anonymous Monk on Mar 31, 2016 at 14:36 UTC | |
by ikegami (Patriarch) on Mar 31, 2016 at 02:40 UTC | |
by jethro (Monsignor) on Mar 31, 2016 at 13:15 UTC | |
by ikegami (Patriarch) on Apr 01, 2016 at 15:44 UTC |
In Section
Seekers of Perl Wisdom