Commit eece2229 authored by Victor Stinner's avatar Victor Stinner

Issue #27213: Fix reference leaks

parent 4d9a7290
......@@ -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));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment