]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Fix error handling bugs in _elementtree.c. (GH-10060)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 23 Oct 2018 19:45:44 +0000 (12:45 -0700)
committerGitHub <noreply@github.com>
Tue, 23 Oct 2018 19:45:44 +0000 (12:45 -0700)
commitc46f0423a42c46cf62d12c300ec36a848f8ba72c
treee2639e9f358a8cc07203f1733ab324df076e52cb
parent7a253dcd97fa669b8615476b287ef4dd0a935014
Fix error handling bugs in _elementtree.c. (GH-10060)

References could leak, NULL could be dereferenced, and the Expat parser could
be double freed when some errors raised.
(cherry picked from commit 9f3ed3e213b30059087d059a7d1d3b2527fa8654)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Modules/_elementtree.c