Skip Menu |

This queue is for tickets about the CDB_File CPAN distribution.

Report information
The Basics
Id: 45540
Status: resolved
Priority: 0/
Queue: CDB_File

People
Owner: TODDR [...] cpan.org
Requestors: gsaylor [...] integrated-support.com
Cc:
AdminCc:

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



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
confirmed leak. I'll look into it.
Ticket migrated to github as https://github.com/toddr/CDB_File/issues/6