mirror of
https://github.com/python/cpython.git
synced 2026-04-13 07:10:50 +00:00
gh-145376: Fix refleak in unusual error path in BaseExceptionGroup_new (GH-145474)
This commit is contained in:
parent
f9dac4e2eb
commit
18aec59fe5
1 changed files with 1 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue