Commit 032e85f3 authored by Zackery Spytz's avatar Zackery Spytz Committed by Xiang Zhang

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

parent 67dafd5c
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment