diff options
author | Zackery Spytz <zspytz@gmail.com> | 2018-08-24 22:22:21 -0600 |
---|---|---|
committer | Xiang Zhang <angwerzx@126.com> | 2018-08-25 12:22:21 +0800 |
commit | 032e85f3fb6d2e6668d4e860b40525ed6cb8dd69 (patch) | |
tree | 909cd09d9bd1c3f495ee05159fe09397b170d300 /Modules | |
parent | 67dafd5c202cd529e209bf3f35e022ce766709eb (diff) | |
download | cpython-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.c | 1 |
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; |