Skip to content

Commit 9e4b2e7

Browse files
committed
SF bug #1183742: PyDict_Copy() can return non-NULL value on error
1 parent 9499857 commit 9e4b2e7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Objects/dictobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1289,7 +1289,7 @@ PyDict_Copy(PyObject *o)
12891289
if (PyDict_Merge(copy, o, 1) == 0)
12901290
return copy;
12911291
Py_DECREF(copy);
1292-
return copy;
1292+
return NULL;
12931293
}
12941294

12951295
int

0 commit comments

Comments
 (0)