diff options
Diffstat (limited to 'Modules/_bsddb.c')
-rw-r--r-- | Modules/_bsddb.c | 3 |
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) { |