Commit f6e7dfa6 authored by Christian Heimes's avatar Christian Heimes

Add missing check of PyDict_SetItem()'s return value in PyEval_EvalCodeEx()

CID 486647
parent 1902ab75
......@@ -3333,7 +3333,9 @@ PyEval_EvalCodeEx(PyObject *_co, PyObject *globals, PyObject *locals,
keyword);
goto fail;
}
PyDict_SetItem(kwdict, keyword, value);
if (PyDict_SetItem(kwdict, keyword, value) == -1) {
goto fail;
}
continue;
kw_found:
if (GETLOCAL(j) != NULL) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment