Skip to content

Commit

Permalink
pythongh-95369: add missing decref in error case of exception group's…
Browse files Browse the repository at this point in the history
… split (pythonGH-95370)
  • Loading branch information
iritkatriel authored Jul 28, 2022
1 parent b946f52 commit bceb197
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Objects/exceptions.c
Original file line number Diff line number Diff line change
Expand Up @@ -1106,6 +1106,7 @@ exceptiongroup_split_recursive(PyObject *exc,
assert(PyList_CheckExact(match_list));
if (PyList_Append(match_list, rec_result.match) < 0) {
Py_DECREF(rec_result.match);
Py_XDECREF(rec_result.rest);
goto done;
}
Py_DECREF(rec_result.match);
Expand Down

0 comments on commit bceb197

Please sign in to comment.