]> granicus.if.org Git - python/commitdiff
Add check for PyDict_Update() error.
authorJeremy Hylton <jeremy@alum.mit.edu>
Tue, 31 Mar 2009 15:04:15 +0000 (15:04 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Tue, 31 Mar 2009 15:04:15 +0000 (15:04 +0000)
Python/symtable.c

index 1871a420d9e6d68082111a4f1f9f6c916c71a70b..514ed44a7f3b1780a170e558ea8484b625647102 100644 (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,