From: Raymond Hettinger Date: Fri, 15 Apr 2005 16:07:09 +0000 (+0000) Subject: SF bug #1183742: PyDict_Copy() can return non-NULL value on error X-Git-Tag: v2.4.2c1~235 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9e4b2e78175deb541202819425e2dbfc9b3eef2b;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 70f05e5def37..4e9d183615f1 100644 --- a/Objects/dictobject.c +++ b/Objects/dictobject.c @@ -1289,7 +1289,7 @@ PyDict_Copy(PyObject *o) if (PyDict_Merge(copy, o, 1) == 0) return copy; Py_DECREF(copy); - return copy; + return NULL; } int