]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-88863: Clear ref cycles to resolve leak when asyncio.open_connection raises...
authorDong Uk, Kang <nailbrainz@gmail.com>
Wed, 23 Nov 2022 18:37:24 +0000 (03:37 +0900)
committerGitHub <noreply@github.com>
Wed, 23 Nov 2022 18:37:24 +0000 (10:37 -0800)
commit24fad64cefec583a6678a59c558508aace077dba
tree29cd5a9d3608d4366e8c063fe6e4753a21067f5e
parent609273eb5277bbd635d0b9e101a76ac5578ca5f6
[3.11] gh-88863: Clear ref cycles to resolve leak when asyncio.open_connection raises (GH-95739) (#99721)

Break reference cycles to resolve memory leak, by
removing local exception and future instances from the frame.
(cherry picked from commit 995f6170c78570eca818f7e7dbd8a7661c171a81)

Co-authored-by: Dong Uk, Kang <nailbrainz@gmail.com>
Lib/asyncio/base_events.py
Lib/asyncio/selector_events.py
Lib/asyncio/windows_events.py
Misc/NEWS.d/next/Library/2022-08-06-12-18-07.gh-issue-88863.NnqsuJ.rst [new file with mode: 0644]