As Corion and Podmaster already pointed out, it seems something in the XS code. I'm no XS expert, but I can confirm that commenting out the SvREFCNT_inc(cv) statement solved the problem, as adding a SvREFCNT_dec(cv) at the end of the main loop does.
Either way, the List::Util extension builds and executes correctly.
The first() function seems to have the same problem...
Looks like the CPAN RT bug is still open.
In reply to Re: Massive memory leak (AS 810)
by cosimo
in thread Massive memory leak (AS 810)
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |