Commit c2fa7d5b authored by Raymond Hettinger's avatar Raymond Hettinger

SF bug #1183742: PyDict_Copy() can return non-NULL value on error

parent 6d471175
...@@ -1291,7 +1291,7 @@ PyDict_Copy(PyObject *o) ...@@ -1291,7 +1291,7 @@ PyDict_Copy(PyObject *o)
if (PyDict_Merge(copy, o, 1) == 0) if (PyDict_Merge(copy, o, 1) == 0)
return copy; return copy;
Py_DECREF(copy); Py_DECREF(copy);
return copy; return NULL;
} }
int int
......
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