mirror of
https://github.com/python/cpython.git
synced 2026-05-06 12:49:07 -04:00
gh-145376: Fix refleak in unusual error path in BaseExceptionGroup_new (GH-145474)
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user