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

This commit is contained in:
Raymond Hettinger 2005-04-15 15:58:42 +00:00
parent fa7e6b46ef
commit 1356f785c1
1 changed files with 1 additions and 1 deletions

View File

@ -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