summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorDong Uk, Kang <nailbrainz@gmail.com>2022-11-22 15:06:20 (GMT)
committerGitHub <noreply@github.com>2022-11-22 15:06:20 (GMT)
commit995f6170c78570eca818f7e7dbd8a7661c171a81 (patch)
treefdfaf448f9fb3bf4a601c1cb51c001deab62ea01 /Misc
parent9a91182d4a87e4511dad20ad101e3eab0e1c5088 (diff)
downloadcpython-995f6170c78570eca818f7e7dbd8a7661c171a81.zip
cpython-995f6170c78570eca818f7e7dbd8a7661c171a81.tar.gz
cpython-995f6170c78570eca818f7e7dbd8a7661c171a81.tar.bz2
gh-88863: Clear ref cycles to resolve leak when asyncio.open_connection raises (#95739)
Break reference cycles to resolve memory leak, by removing local exception and future instances from the frame
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 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.