Mercurial > cpython-lru_cache-weakref
diff Python/symtable.c @ 52527:6694f3a1b6e7 legacy-trunk
Add check for PyDict_Update() error.
| author | Jeremy Hylton <jeremy@alum.mit.edu> |
|---|---|
| date | Tue, 31 Mar 2009 15:04:15 +0000 |
| parents | 6910792fcd4b |
| children | f634c5455b4f |
line wrap: on
line diff
--- a/Python/symtable.c Tue Mar 31 13:48:15 2009 +0000 +++ b/Python/symtable.c Tue Mar 31 15:04:15 2009 +0000 @@ -702,7 +702,8 @@ 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,
