Skip Menu |
 

This queue is for tickets about the Scalar-Util-Instance CPAN distribution.

Report information
The Basics
Id: 77456
Status: new
Priority: 0/
Queue: Scalar-Util-Instance

People
Owner: Nobody in particular
Requestors: user42 [...] zip.com.au
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: generate_for() coderef memory leak
Date: Sun, 27 May 2012 09:42:48 +1000
To: bug-Scalar-Util-Instance [...] rt.cpan.org
From: Kevin Ryde <user42 [...] zip.com.au>
Download (untitled) / with headers
text/plain 594b
With recent debian i386 perl 5.14.2, running a program use Scalar::Util::Instance; for (;;) { Scalar::Util::Instance->generate_for('Foo'); } uses ever more memory, whereas I hoped the anonymous coderef returned would garbage collect when no longer used. I wonder if the rv return in generate_for() should have an sv_2mortal. That newRV is not used other than in the return is it? XPUSHs( sv_2mortal(newRV_noinc((SV*)xsub)) ); -- The sigfile English idioms series: "When the cat's away the mice will play" -- in the absence of authority there will be wrongdoing.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.