Skip Menu |

This queue is for tickets about the Data-Lazy CPAN distribution.

Report information
The Basics
Id: 56230
Status: new
Priority: 0/
Queue: Data-Lazy

People
Owner: Nobody in particular
Requestors: NCLEATON [...] cpan.org
Cc:
AdminCc:

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



Subject: LAZY_UNTIE leaks if the tied scalar goes out of scope
Data::Lazy leaks memory if a tied variable with LAZY_UNTIE goes out of scope before the value is read, since there is a reference loop between the scalar and the object tied to it: while (1) { my $x; tie $x, 'Data::Lazy', \$x, sub {return $_ + 999}; } ... and watch the process grow without bound.