From: Raymond Hettinger Date: Fri, 15 Apr 2005 15:58:42 +0000 (+0000) Subject: SF bug #1183742: PyDict_Copy() can return non-NULL value on error X-Git-Tag: v2.5a0~1816 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1356f785c1fd8c2282f812b4ec6365359cb5b84f;p=thirdparty%2FPython%2Fcpython.git SF bug #1183742: PyDict_Copy() can return non-NULL value on error --- diff --git a/Objects/dictobject.c b/Objects/dictobject.c index 82e82a8bc923..1be34774e3e3 100644 --- a/Objects/dictobject.c +++ b/Objects/dictobject.c @@ -1291,7 +1291,7 @@ PyDict_Copy(PyObject *o) if (PyDict_Merge(copy, o, 1) == 0) return copy; Py_DECREF(copy); - return copy; + return NULL; } int