gh-145376: Fix refleak in unusual error path in BaseExceptionGroup_new (GH-145474)

This commit is contained in:
Pieter Eendebak 2026-03-04 14:34:24 +01:00 committed by GitHub
parent f9dac4e2eb
commit 18aec59fe5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -912,7 +912,7 @@ BaseExceptionGroup_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
exceptions = PySequence_Tuple(exceptions);
if (!exceptions) {
return NULL;
goto error;
}
/* We are now holding a ref to the exceptions tuple */