From: Zackery Spytz Date: Sat, 25 Aug 2018 04:22:21 +0000 (-0600) Subject: bpo-34491: Add missing Py_DECREF() in _bsddb's DB_join() (GH-8909) X-Git-Tag: v2.7.16rc1~168 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=032e85f3fb6d2e6668d4e860b40525ed6cb8dd69;p=thirdparty%2FPython%2Fcpython.git bpo-34491: Add missing Py_DECREF() in _bsddb's DB_join() (GH-8909) --- diff --git a/Modules/_bsddb.c b/Modules/_bsddb.c index 6a1c188cbd96..cee447bfc67d 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;