mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Add missing decref
This commit is contained in:
parent
b492fa9101
commit
ef786ae1a5
1 changed files with 1 additions and 0 deletions
|
@ -981,6 +981,7 @@ dict_fromkeys(PyObject *mp, PyObject *args)
|
|||
return NULL;
|
||||
if (!PyDict_Check(d)) {
|
||||
PyErr_BadInternalCall();
|
||||
Py_DECREF(d);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue