Commit e901d1fb authored by Victor Stinner's avatar Victor Stinner

Issue #18408: Fix Py_ReprEnter(), handle PyList_Append() failure

parent 095d99ff
......@@ -1910,7 +1910,8 @@ Py_ReprEnter(PyObject *obj)
if (PyList_GET_ITEM(list, i) == obj)
return 1;
}
PyList_Append(list, obj);
if (PyList_Append(list, obj) < 0)
return -1;
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment