[Python-checkins] r70821 - python/trunk/Python/symtable.c
jeremy.hylton
python-checkins at python.org
Tue Mar 31 17:04:15 CEST 2009
Author: jeremy.hylton
Date: Tue Mar 31 17:04:15 2009
New Revision: 70821
Log:
Add check for PyDict_Update() error.
Modified:
python/trunk/Python/symtable.c
Modified: python/trunk/Python/symtable.c
==============================================================================
--- python/trunk/Python/symtable.c (original)
+++ python/trunk/Python/symtable.c Tue Mar 31 17:04:15 2009
@@ -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,
More information about the Python-checkins
mailing list