Skip to content

[3.8] gh-108342: Break ref cycle in SSLSocket._create() exc (GH-108344)#108352

Merged
ambv merged 1 commit intopython:3.8from
miss-islington:backport-64f9935-3.8
Aug 23, 2023
Merged

[3.8] gh-108342: Break ref cycle in SSLSocket._create() exc (GH-108344)#108352
ambv merged 1 commit intopython:3.8from
miss-islington:backport-64f9935-3.8

Conversation

@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Aug 23, 2023

Explicitly break a reference cycle when SSLSocket._create() raises an
exception. Clear the variable storing the exception, since the
exception traceback contains the variables and so creates a reference
cycle.

This test leak was introduced by the test added for the fix of GH-108310.
(cherry picked from commit 64f9935)

Co-authored-by: Victor Stinner vstinner@python.org

…-108344)

Explicitly break a reference cycle when SSLSocket._create() raises an
exception. Clear the variable storing the exception, since the
exception traceback contains the variables and so creates a reference
cycle.

This test leak was introduced by the test added for the fix of pythonGH-108310.
(cherry picked from commit 64f9935)

Co-authored-by: Victor Stinner <vstinner@python.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants