summaryrefslogtreecommitdiffstats
path: root/Modules/_bsddb.c
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2006-03-12 00:01:38 (GMT)
committerThomas Wouters <thomas@python.org>2006-03-12 00:01:38 (GMT)
commitb2820ae35546c20b04d3bfa64c7895f97dcf584e (patch)
treee166d90a93a8b95361b5716c3cfdf398bcc243d3 /Modules/_bsddb.c
parent9fe582ceec80d4e922e2ad53e7203b866dacd4d2 (diff)
downloadcpython-b2820ae35546c20b04d3bfa64c7895f97dcf584e.zip
cpython-b2820ae35546c20b04d3bfa64c7895f97dcf584e.tar.gz
cpython-b2820ae35546c20b04d3bfa64c7895f97dcf584e.tar.bz2
Fix another leak in bsddb, and avoid use of uninitialized value -- funny how
gcc 4.0.x wasn't complaining about *that* one ;)
Diffstat (limited to 'Modules/_bsddb.c')
-rw-r--r--Modules/_bsddb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/_bsddb.c b/Modules/_bsddb.c
index f998376..9d0893e 100644
--- a/Modules/_bsddb.c
+++ b/Modules/_bsddb.c
@@ -1742,6 +1742,7 @@ DB_join(DBObject* self, PyObject* args)
return NULL;
}
cursors[x] = ((DBCursorObject*)item)->dbc;
+ Py_DECREF(item);
}
MYDB_BEGIN_ALLOW_THREADS;
@@ -2017,7 +2018,7 @@ _db_compareCallback(DB* db,
{
int res = 0;
PyObject *args;
- PyObject *result;
+ PyObject *result = NULL;
DBObject *self = (DBObject *)db->app_private;
if (self == NULL || self->btCompareCallback == NULL) {