mirror of https://github.com/python/cpython
SF bug #1183742: PyDict_Copy() can return non-NULL value on error
This commit is contained in:
parent
fa7e6b46ef
commit
1356f785c1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue