Issue #27100: Fix ref leak
This commit is contained in:
parent
02a4018c6e
commit
64e2f9ac86
|
@ -3138,8 +3138,10 @@ _PyEval_EvalFrameDefault(PyFrameObject *f, int throwflag)
|
|||
if (enter == NULL)
|
||||
goto error;
|
||||
exit = special_lookup(mgr, &PyId___exit__);
|
||||
if (exit == NULL)
|
||||
if (exit == NULL) {
|
||||
Py_DECREF(enter);
|
||||
goto error;
|
||||
}
|
||||
SET_TOP(exit);
|
||||
Py_DECREF(mgr);
|
||||
res = PyObject_CallFunctionObjArgs(enter, NULL);
|
||||
|
|
Loading…
Reference in New Issue