Issue #27213: Fix reference leaks
This commit is contained in:
parent
4d9a72902d
commit
eece2229e2
|
@ -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…
Reference in New Issue