bpo-34491: Add missing Py_DECREF() in _bsddb's DB_join() (GH-8909)

This commit is contained in:
Zackery Spytz 2018-08-24 22:22:21 -06:00 committed by Xiang Zhang
parent 67dafd5c20
commit 032e85f3fb
1 changed files with 1 additions and 0 deletions

View File

@ -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;