Keep It Simple, Stupid | |
PerlMonks |
Re^3: "goto" memory leakby ikegami (Patriarch) |
on Mar 30, 2016 at 13:15 UTC ( [id://1159122]=note: print w/replies, xml ) | Need Help?? |
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 to
It pushes an instruction on the stack to clear the scope on exit (which could happen, say, if an exception occurs).
In Section
Seekers of Perl Wisdom
|
|