commit | e901d1fbdff989c3d4b47eb46b0eb1ae6e46b71c | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@gmail.com> | Wed Jul 17 21:58:41 2013 +0200 |
committer | Victor Stinner <victor.stinner@gmail.com> | Wed Jul 17 21:58:41 2013 +0200 |
tree | 9fb5e882eb5c960a1d4d4996145fa4a12d3e722f | |
parent | 095d99ffffbcee6d33523c439dc6a81a6787c5b6 [diff] |
Issue #18408: Fix Py_ReprEnter(), handle PyList_Append() failure
diff --git a/Objects/object.c b/Objects/object.c index 700e8be..e957d9d 100644 --- a/Objects/object.c +++ b/Objects/object.c
@@ -1910,7 +1910,8 @@ if (PyList_GET_ITEM(list, i) == obj) return 1; } - PyList_Append(list, obj); + if (PyList_Append(list, obj) < 0) + return -1; return 0; }