summaryrefslogtreecommitdiff
path: root/Modules
diff options
context:
space:
mode:
authorZackery Spytz <zspytz@gmail.com>2018-08-24 22:22:21 -0600
committerXiang Zhang <angwerzx@126.com>2018-08-25 12:22:21 +0800
commit032e85f3fb6d2e6668d4e860b40525ed6cb8dd69 (patch)
tree909cd09d9bd1c3f495ee05159fe09397b170d300 /Modules
parent67dafd5c202cd529e209bf3f35e022ce766709eb (diff)
downloadcpython-git-032e85f3fb6d2e6668d4e860b40525ed6cb8dd69.tar.gz
bpo-34491: Add missing Py_DECREF() in _bsddb's DB_join() (GH-8909)
Diffstat (limited to 'Modules')
-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;