Subject: | Memory leak in CDB_File 0.96 |
Date: | Tue, 28 Apr 2009 18:54:51 -0700 (PDT) |
To: | bug-CDB_File [...] rt.cpan.org. |
From: | gsaylor [...] integrated-support.com |
This code (inserting the same key multiple times) seems to leak memory:
use strict;
use CDB_File;
my $cdb_file = 'test.cdb';
my $cdb = CDB_File->new($cdb_file, "$cdb_file.tmp") or die "Unable to
create CDB file: $!";
while(1)
{
$cdb->insert('leak', 1);
}
I tried in OS-X 10.5.6 (perl 5.8.8) and Linux 2.6.17.8 kernel with Perl
5.8.4 - same result on both systems.
I thought maybe it was related to inserting the same key over and over, so
I made each insert unique (I.E. 'leak'.$i) and the same leak seemed to
exist.
- Greg