diff options
author | Dong Uk, Kang <nailbrainz@gmail.com> | 2022-11-23 18:39:04 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-23 18:39:04 (GMT) |
commit | b191bc35f53904783d14df7fc37b0d9cad0f67b0 (patch) | |
tree | 15cbd99190c0e63630227d8dd1c3b9e640698ef8 /Misc | |
parent | 40a4b40bb1a8b27c1490fcbb5937d2e2cffa280c (diff) | |
download | cpython-b191bc35f53904783d14df7fc37b0d9cad0f67b0.zip cpython-b191bc35f53904783d14df7fc37b0d9cad0f67b0.tar.gz cpython-b191bc35f53904783d14df7fc37b0d9cad0f67b0.tar.bz2 |
[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>
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2022-08-06-12-18-07.gh-issue-88863.NnqsuJ.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2022-08-06-12-18-07.gh-issue-88863.NnqsuJ.rst b/Misc/NEWS.d/next/Library/2022-08-06-12-18-07.gh-issue-88863.NnqsuJ.rst new file mode 100644 index 0000000..23f8cb0 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2022-08-06-12-18-07.gh-issue-88863.NnqsuJ.rst @@ -0,0 +1,3 @@ +To avoid apparent memory leaks when :func:`asyncio.open_connection` raises, +break reference cycles generated by local exception and future instances +(which has exception instance as its member var). Patch by Dong Uk, Kang. |