Skip Menu |

This queue is for tickets about the Tie-RefHash-Weak CPAN distribution.

Report information
The Basics
Id: 64026
Status: open
Priority: 0/
Queue: Tie-RefHash-Weak

People
Owner: ether [...] cpan.org
Requestors: cjm [...] cpan.org
Cc:
AdminCc:

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



Subject: Leaks references in STORE
Tie::RefHash::Weak 0.09 contains the line @$objects = grep { defined } @$objects; As mentioned in Scalar::Util's docs, this idiom, while it does remove dead weakrefs, also turns the remaining weakrefs into strong references. You'd have to say something like: @$objects = grep { defined } @$objects; Scalar::Util::weaken($_) for @$objects; Or use a method that doesn't involve copying, like looping over the indices and splicing out dead refs, and possibly searching for $s at the same time.
Subject: Re: [rt.cpan.org #64026] Leaks references in STORE
Date: Mon, 20 Dec 2010 01:20:38 +0200
To: bug-Tie-RefHash-Weak [...] rt.cpan.org
From: Yuval Kogman <nuffin [...] cpan.org>
Thanks for this report (and the other one too), I'll try and patch these tomorrow and hopefully make a release. Cheers, Yuval