mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
SF bug #1183742: PyDict_Copy() can return non-NULL value on error
This commit is contained in:
parent
fa7e6b46ef
commit
1356f785c1
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue