Add missing check of PyDict_Update()'s return value in _elementtree.c

CID 719637
This commit is contained in:
Christian Heimes 2013-07-20 15:12:09 +02:00
parent 97cb67b9ca
commit 7ed4294d7f
1 changed files with 2 additions and 1 deletions

View File

@ -347,7 +347,8 @@ get_attrib_from_keywords(PyObject *kwds)
Py_DECREF(attrib_str);
if (attrib)
PyDict_Update(attrib, kwds);
if (PyDict_Update(attrib, kwds) < 0)
return NULL;
return attrib;
}