bpo-34491: Add missing Py_DECREF() in _bsddb's DB_join() (GH-8909)
This commit is contained in:
parent
67dafd5c20
commit
032e85f3fb
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue