Subject: | Memory link in hash storage with version 2.0011 |
Date: | Fri, 17 Apr 2015 12:07:14 -0700 |
To: | bug-DBM-Deep [...] rt.cpan.org |
From: | Evan Staton <s.evan.staton [...] gmail.com> |
I have discovered a memory leak when using a tied hash or the OO interface.
Here is a simple example to demonstrate this behavior:
use strict;
use warnings;
use DBM::Deep;
my $dbm = "does_leak.dbm";
my $db = DBM::Deep->new( $dbm );
open my $list, '-|', 'cat /usr/share/dict/words'
or die $!;
while (my $word = <$list>) {
chomp $word;
$db->{$word} = 1;
}
close $list;
I previously posted this to the github issues, sorry for the double
posting. I'd be happy to create a test or provide more information.
Thanks,
Evan