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.