summaryrefslogtreecommitdiff
path: root/ext/NDBM_File
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-02-15 05:17:56 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-02-15 05:17:56 +0000
commiteb99164fe573f928a1e23c686cddfafdbe9ae10a (patch)
treeeae8bb5b4209240a71a8c3f8e94c84498fcfb101 /ext/NDBM_File
parent850fabdf2ccd0a80b987899ff0014695459be38a (diff)
downloadperl-eb99164fe573f928a1e23c686cddfafdbe9ae10a.tar.gz
fix leaks in *DBM_File; safemalloc()ed things need to be freed with
safefree() rather than Safefree() p4raw-id: //depot/perl@5091
Diffstat (limited to 'ext/NDBM_File')
-rw-r--r--ext/NDBM_File/NDBM_File.xs1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/NDBM_File/NDBM_File.xs b/ext/NDBM_File/NDBM_File.xs
index 29cc288769..49a1db5e56 100644
--- a/ext/NDBM_File/NDBM_File.xs
+++ b/ext/NDBM_File/NDBM_File.xs
@@ -63,6 +63,7 @@ ndbm_DESTROY(db)
NDBM_File db
CODE:
dbm_close(db->dbp);
+ safefree(db);
#define ndbm_FETCH(db,key) dbm_fetch(db->dbp,key)
datum_value