Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit eece222

Browse files
committed
Issue #27213: Fix reference leaks
1 parent 4d9a729 commit eece222

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Python/ceval.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3300,6 +3300,7 @@ _PyEval_EvalFrameDefault(PyFrameObject *f, int throwflag)
33003300
PyEval_GetFuncDesc(func),
33013301
kwargs->ob_type->tp_name);
33023302
}
3303+
Py_DECREF(kwargs);
33033304
goto error;
33043305
}
33053306
Py_DECREF(kwargs);
@@ -3318,6 +3319,7 @@ _PyEval_EvalFrameDefault(PyFrameObject *f, int throwflag)
33183319
PyEval_GetFuncName(func),
33193320
PyEval_GetFuncDesc(func),
33203321
callargs->ob_type->tp_name);
3322+
Py_DECREF(callargs);
33213323
goto error;
33223324
}
33233325
Py_SETREF(callargs, PySequence_Tuple(callargs));

0 commit comments

Comments
 (0)