]> granicus.if.org Git - python/commit
SF patch / bug #967763
authorGregory P. Smith <greg@mad-scientist.com>
Sun, 27 Jun 2004 23:32:34 +0000 (23:32 +0000)
committerGregory P. Smith <greg@mad-scientist.com>
Sun, 27 Jun 2004 23:32:34 +0000 (23:32 +0000)
commitdc5af70631c86723132518152ce5f910848d83ae
treeb7f34b5ca26308a06dd352d34fc800ac8fe661e9
parentc2b151c66ee9bc6e686400ee93e65e07d1999888
SF patch / bug #967763
Fix memory leaks revealed by valgrind and ensuing code inspection.

In the existing test suite valgrind revealed two memory leaks (DB_get
and DBC_set_range).  Code inspection revealed that there were many other
potential similar leaks (many on odd code error paths such as passing
something other than a DBTxn object for a txn= parameter or in the face
of an out of memory error).  The most common case that would cause a
leak was when using recno or queue format databases with integer keys,
sometimes only with an exception exit.
Lib/bsddb/test/test_recno.py
Modules/_bsddb.c