summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2002-11-27 19:38:00 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2002-11-27 19:38:00 (GMT)
commitef786ae1a53d40107a6e7f9640a5029c1d663737 (patch)
tree05ef0c544826dd638fd83749aa7daf67d2ad88b3 /Objects
parentb492fa9101d88a0141222e4160a44b2577bee3ea (diff)
downloadcpython-ef786ae1a53d40107a6e7f9640a5029c1d663737.zip
cpython-ef786ae1a53d40107a6e7f9640a5029c1d663737.tar.gz
cpython-ef786ae1a53d40107a6e7f9640a5029c1d663737.tar.bz2
Add missing decref
Diffstat (limited to 'Objects')
-rw-r--r--Objects/dictobject.c1
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;
}