]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[2.7] Fix error handling bugs in _elementtree.c. (GH-10060) (GH-10080)
authorZackery Spytz <zspytz@gmail.com>
Fri, 26 Oct 2018 05:37:07 +0000 (23:37 -0600)
committerSerhiy Storchaka <storchaka@gmail.com>
Fri, 26 Oct 2018 05:37:07 +0000 (08:37 +0300)
commite131c7cf7893cdddc74caba2ca649b600dc6760b
tree75420f22b91c7248b2cd55590c24be88f4045400
parent4a59c9699ca8688359c460f98127a12e2db6e63b
[2.7] Fix error handling bugs in _elementtree.c. (GH-10060) (GH-10080)

Don't leak a reference if PyDict_Update() fails, check the
PyList_New() call in treebuilder_new(), and properly handle failures
in xmlparser().

(cherry picked from commit 9f3ed3e213b30059087d059a7d1d3b2527fa8654)
Modules/_elementtree.c