summaryrefslogtreecommitdiff
path: root/Misc
diff options
context:
space:
mode:
authorDong Uk, Kang <nailbrainz@gmail.com>2022-11-24 03:39:04 +0900
committerGitHub <noreply@github.com>2022-11-23 10:39:04 -0800
commitb191bc35f53904783d14df7fc37b0d9cad0f67b0 (patch)
tree15cbd99190c0e63630227d8dd1c3b9e640698ef8 /Misc
parentGH-95283: Add note about compilers in Mac/README.txt (GH-99506) (diff)
downloadcpython-b191bc35f53904783d14df7fc37b0d9cad0f67b0.tar.gz
cpython-b191bc35f53904783d14df7fc37b0d9cad0f67b0.tar.bz2
cpython-b191bc35f53904783d14df7fc37b0d9cad0f67b0.zip
[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.rst3
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 00000000000..23f8cb01cf0
--- /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.