NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Re: sub r {return if !$_[0]; r($_[0]-1); } leaktra (Score:1)
Re: sub r {return if !$_[0]; r($_[0]-1); } leaktra (Score:1)
perl -MTest::LeakTrace -le 'sub r {return if !$_[0]; r($_[0]-1); } r(1); leaktrace{ r(1);};'Hmm yes the second recursion calling is not leaking memory any more.
Reply to This
Parent