]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-46347: Yet another fix in the erorr path of PyEval_EvalCodeEx (#30554)
authorYury Selivanov <yury@edgedb.com>
Wed, 12 Jan 2022 00:35:19 +0000 (16:35 -0800)
committerGitHub <noreply@github.com>
Wed, 12 Jan 2022 00:35:19 +0000 (16:35 -0800)
Python/ceval.c

index c512afadb1f7a7ae457f5c11f1b64b74a87281d5..8e878cbf7e2b3018a3ea5d17bf28c90b1681601e 100644 (file)
@@ -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++) {