From: Yury Selivanov Date: Wed, 12 Jan 2022 00:35:19 +0000 (-0800) Subject: bpo-46347: Yet another fix in the erorr path of PyEval_EvalCodeEx (#30554) X-Git-Tag: v3.11.0a4~17 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=be578e0c063dad1dbb273f86d5bc77e4e6f14583;p=thirdparty%2FPython%2Fcpython.git bpo-46347: Yet another fix in the erorr path of PyEval_EvalCodeEx (#30554) --- diff --git a/Python/ceval.c b/Python/ceval.c index c512afadb1f7..8e878cbf7e2b 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -6113,7 +6113,6 @@ PyEval_EvalCodeEx(PyObject *_co, PyObject *globals, PyObject *locals, } newargs = PyMem_Malloc(sizeof(PyObject *)*(kwcount+argcount)); if (newargs == NULL) { - Py_DECREF(kwnames); goto fail; } for (int i = 0; i < argcount; i++) {