Skip to content

Commit

Permalink
Update Objects/abstract.c
Browse files Browse the repository at this point in the history
Co-authored-by: Irit Katriel <[email protected]>
  • Loading branch information
markshannon and iritkatriel authored Dec 11, 2024
1 parent 4b8caa0 commit 8badf7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Objects/abstract.c
Original file line number Diff line number Diff line change
Expand Up @@ -2046,7 +2046,7 @@ PySequence_Tuple(PyObject *v)
}
break;
}
if (_PyList_AppendTakeRef(list, item)) {
if (_PyList_AppendTakeRef(list, item) < 0) {
Py_DECREF(list);
Py_DECREF(it);
return NULL;
Expand Down

0 comments on commit 8badf7b

Please sign in to comment.