On Sun, Jun 26, 2005 at 06:45:09PM -0000, Robert Rothenberg wrote:
> When new objects (blessed references) are created inside a loop, they 
> are not properly garbage collected.  For N iterations, N-1 SVs are 
> leaked, according to Devel::Leak.  Whether it is a while, for or foreach 
> loop does't matter:

with perl 5.8.7 and Devel::Leek 0.03, I get a contant 9 extra scalars,
completely independently of N. Furthermore, if I make 1 call to Foo->new()
*before* Devel::Leak::NoteSV() then no scalars are shown to have leaked.

I conclude that there isn't a leak.

-- 
Thank God I'm an atheist.....

Reply via email to