mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00
Add check for PyDict_Update() error.
This commit is contained in:
parent
88f1c04215
commit
2696275348
1 changed files with 2 additions and 1 deletions
|
@ -702,7 +702,8 @@ analyze_block(PySTEntryObject *ste, PyObject *bound, PyObject *free,
|
|||
ste->ste_child_free = 1;
|
||||
}
|
||||
|
||||
PyDict_Update(newfree, allfree);
|
||||
if (PyDict_Update(newfree, allfree) < 0)
|
||||
goto error;
|
||||
if (ste->ste_type == FunctionBlock && !analyze_cells(scope, newfree))
|
||||
goto error;
|
||||
if (!update_symbols(ste->ste_symbols, scope, bound, newfree,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue