perlquestion
devnul
Hello,<br>
<br>
I seem to be having an issue with CDB_File (0.96) I've reproduced this on OS-X 10.5.2, FreeBSD 7.1, and SuSe 10x, so I think it must be in the module and not system related. (Or, maybe, I'm using it wrong).<br>
<br>
At any rate, here is some code:<br>
<br>
<code>
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);
}
</code>
<br>
When this script runs the process's memory footprint grows larger and larger. I thought it might be related to re-inserting the same key over-and-over, so I changed it to something like <code>'leak'.$i</code> and observed the same behavior.<br>
<br>
I reported this as a bug at rt.cpan.org, but thought maybe I'd post it here in case other's had (or have, or will have) a similar issue and someone has a solution.<br>
<br>
Thanks, as always!<br>
<br>
- dEvNuL