]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-35008: Fix possible leaks in Element.__setstate__(). (GH-9924) 9948/head
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 18 Oct 2018 07:17:15 +0000 (00:17 -0700)
committerGitHub <noreply@github.com>
Thu, 18 Oct 2018 07:17:15 +0000 (00:17 -0700)
commit5b9b9353de502853b42a20d950ad0ac1fadd05ea
tree29c7a7d074ebd90de79b165b226aa99f0a58f7cf
parent178d1c07778553bf66e09fe0bb13796be3fb9abf
bpo-35008: Fix possible leaks in Element.__setstate__(). (GH-9924)

C implementation of xml.etree.ElementTree.Element.__setstate__()
leaked references to children when called for already initialized
element.
(cherry picked from commit 6f906b3d727d6b341abd5ad9c0652bbcbd5eb024)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/test/test_xml_etree_c.py
Misc/NEWS.d/next/Library/2018-10-17-11-54-04.bpo-35008.dotef_.rst [new file with mode: 0644]
Modules/_elementtree.c