[Python-checkins] bpo-46347: Yet another fix in the erorr path of PyEval_EvalCodeEx (#30554)

1st1 webhook-mailer at python.org
Tue Jan 11 19:35:44 EST 2022


https://github.com/python/cpython/commit/be578e0c063dad1dbb273f86d5bc77e4e6f14583
commit: be578e0c063dad1dbb273f86d5bc77e4e6f14583
branch: main
author: Yury Selivanov <yury at edgedb.com>
committer: 1st1 <yury at edgedb.com>
date: 2022-01-11T16:35:19-08:00
summary:

bpo-46347: Yet another fix in the erorr path of PyEval_EvalCodeEx (#30554)

files:
M Python/ceval.c

diff --git a/Python/ceval.c b/Python/ceval.c
index c512afadb1f7a..8e878cbf7e2b3 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++) {



More information about the Python-checkins mailing list