From: Jeremy Hylton Date: Tue, 31 Mar 2009 15:04:15 +0000 (+0000) Subject: Add check for PyDict_Update() error. X-Git-Tag: v2.7a1~1710 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=269627534811b6b0a5e73fcc2a0298b6048cc3e8;p=python Add check for PyDict_Update() error. --- diff --git a/Python/symtable.c b/Python/symtable.c index 1871a420d9..514ed44a7f 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,