]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-35008: Fix possible leaks in Element.__setstate__(). (GH-9924)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 18 Oct 2018 07:16:40 +0000 (00:16 -0700)
committerGitHub <noreply@github.com>
Thu, 18 Oct 2018 07:16:40 +0000 (00:16 -0700)
commitbcbefe23fe2eb616a03c22764ba4ea79e12e3e28
treedbb5db24cf12f0e5b6e852f00a3b1f834af6b532
parent4bfecb9298d447d5599ea76f3f68f772c38b8fd0
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