]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-101438: Avoid reference cycle in ElementTree.iterparse. (GH-114269)
authorSam Gross <colesbury@gmail.com>
Tue, 23 Jan 2024 20:14:46 +0000 (15:14 -0500)
committerGitHub <noreply@github.com>
Tue, 23 Jan 2024 20:14:46 +0000 (20:14 +0000)
commitce01ab536f22a3cf095d621f3b3579c1e3567859
tree8c1237e51e012393b7e52b656f6065e436e25945
parent8c265408c51609c6b4a6788cac9cc5fea7a14888
gh-101438: Avoid reference cycle in ElementTree.iterparse. (GH-114269)

The iterator returned by ElementTree.iterparse() may hold on to a file
descriptor. The reference cycle prevented prompt clean-up of the file
descriptor if the returned iterator was not exhausted.
Lib/xml/etree/ElementTree.py
Misc/NEWS.d/next/Library/2024-01-18-22-29-28.gh-issue-101438.1-uUi_.rst [new file with mode: 0644]