mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Issue #27213: Fix reference leaks
This commit is contained in:
parent
4d9a72902d
commit
eece2229e2
1 changed files with 2 additions and 0 deletions
|
@ -3300,6 +3300,7 @@ _PyEval_EvalFrameDefault(PyFrameObject *f, int throwflag)
|
|||
PyEval_GetFuncDesc(func),
|
||||
kwargs->ob_type->tp_name);
|
||||
}
|
||||
Py_DECREF(kwargs);
|
||||
goto error;
|
||||
}
|
||||
Py_DECREF(kwargs);
|
||||
|
@ -3318,6 +3319,7 @@ _PyEval_EvalFrameDefault(PyFrameObject *f, int throwflag)
|
|||
PyEval_GetFuncName(func),
|
||||
PyEval_GetFuncDesc(func),
|
||||
callargs->ob_type->tp_name);
|
||||
Py_DECREF(callargs);
|
||||
goto error;
|
||||
}
|
||||
Py_SETREF(callargs, PySequence_Tuple(callargs));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue