diff options
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/dictobject.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/dictobject.c b/Objects/dictobject.c index b8ba7e1..eca8677 100644 --- a/Objects/dictobject.c +++ b/Objects/dictobject.c @@ -981,6 +981,7 @@ dict_fromkeys(PyObject *mp, PyObject *args) return NULL; if (!PyDict_Check(d)) { PyErr_BadInternalCall(); + Py_DECREF(d); return NULL; } |