summaryrefslogtreecommitdiff
path: root/Modules/_bsddb.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/_bsddb.c')
-rw-r--r--Modules/_bsddb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/_bsddb.c b/Modules/_bsddb.c
index 6a1c188cbd..cee447bfc6 100644
--- a/Modules/_bsddb.c
+++ b/Modules/_bsddb.c
@@ -2297,6 +2297,7 @@ DB_join(DBObject* self, PyObject* args)
PyErr_SetString(PyExc_TypeError,
"Sequence of DBCursor objects expected");
free(cursors);
+ Py_DECREF(item);
return NULL;
}
cursors[x] = ((DBCursorObject*)item)->dbc;