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

This commit is contained in:
Yury Selivanov 2022-01-11 16:35:19 -08:00 committed by GitHub
parent 20b5791ce9
commit be578e0c06
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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++) {