]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.10] gh-88863: Clear ref cycles to resolve leak when asyncio.open_connection raises...
authorDong Uk, Kang <nailbrainz@gmail.com>
Wed, 23 Nov 2022 18:39:04 +0000 (03:39 +0900)
committerGitHub <noreply@github.com>
Wed, 23 Nov 2022 18:39:04 +0000 (10:39 -0800)
commitb191bc35f53904783d14df7fc37b0d9cad0f67b0
tree15cbd99190c0e63630227d8dd1c3b9e640698ef8
parent40a4b40bb1a8b27c1490fcbb5937d2e2cffa280c
[3.10] gh-88863: Clear ref cycles to resolve leak when asyncio.open_connection raises (GH-95739) (#99722)

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]