Add check for PyDict_Update() error.

This commit is contained in:
Jeremy Hylton 2009-03-31 15:04:15 +00:00
parent 88f1c04215
commit 2696275348
1 changed files with 2 additions and 1 deletions

View File

@ -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,