From ba830c8a2526906b99ac287ba294e6884eba5046 Mon Sep 17 00:00:00 2001 From: Yury Selivanov Date: Tue, 11 Jan 2022 16:01:52 -0800 Subject: [PATCH] bpo-46347: Yet another fix in the erorr path of PyEval_EvalCodeEx --- Python/ceval.c | 1 - 1 file changed, 1 deletion(-) diff --git a/Python/ceval.c b/Python/ceval.c index c512afadb1f7a7..8e878cbf7e2b30 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++) {