mirror of
https://github.com/python/cpython.git
synced 2025-07-28 05:34:31 +00:00
Handle more mem alloc issues found with failmalloc
This commit is contained in:
parent
c6bacd5606
commit
18b6adf9b2
2 changed files with 5 additions and 1 deletions
|
@ -529,6 +529,8 @@ update_symbols(PyObject *symbols, PyObject *scope,
|
|||
i = PyInt_AS_LONG(w);
|
||||
flags |= (i << SCOPE_OFF);
|
||||
u = PyInt_FromLong(flags);
|
||||
if (!u)
|
||||
return 0;
|
||||
if (PyDict_SetItem(symbols, name, u) < 0) {
|
||||
Py_DECREF(u);
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue