Skip to content

missing decref in error case of ExceptionGroup split() #95369

Closed
@iritkatriel

Description

@iritkatriel

Noticed in the code:

            if (PyList_Append(match_list, rec_result.match) < 0) {
                Py_DECREF(rec_result.match);
                goto done;
            }

We are missing a Py_XDECREF(rec_result.rest); before the goto done.

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.11only security fixes3.12bugs and security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions