]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-108342: Break ref cycle in SSLSocket._create() exc (#108344)
authorVictor Stinner <vstinner@python.org>
Wed, 23 Aug 2023 05:26:01 +0000 (07:26 +0200)
committerGitHub <noreply@github.com>
Wed, 23 Aug 2023 05:26:01 +0000 (05:26 +0000)
commit64f99350351bc46e016b2286f36ba7cd669b79e3
tree14a9d35a1bc9ae688fce5d96adfebb174185d62c
parent9173b2bbe13aeccc075b571da05c653a2a91de1b
gh-108342: Break ref cycle in SSLSocket._create() exc (#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 #108310.
Lib/ssl.py