diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2009-03-31 15:04:15 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2009-03-31 15:04:15 (GMT) |
commit | 269627534811b6b0a5e73fcc2a0298b6048cc3e8 (patch) | |
tree | 240eaf4e2c60548efb1e6af2980cec60e3bce44e /Python | |
parent | 88f1c042150466f94784526e14842eb694a54735 (diff) | |
download | cpython-269627534811b6b0a5e73fcc2a0298b6048cc3e8.zip cpython-269627534811b6b0a5e73fcc2a0298b6048cc3e8.tar.gz cpython-269627534811b6b0a5e73fcc2a0298b6048cc3e8.tar.bz2 |
Add check for PyDict_Update() error.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/symtable.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/symtable.c b/Python/symtable.c index 1871a42..514ed44 100644 --- a/Python/symtable.c +++ b/Python/symtable.c @@ -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, |