[3.12] gh-108342: Break ref cycle in SSLSocket._create() exc (GH-108344) (#108348)
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 64f99350351bc46e016b2286f36ba7cd669b79e3) Co-authored-by: Victor Stinner <vstinner@python.org>
M
Miss Islington (bot) committed
61dbf46ae3df9d772bfd91b89ab61baeff97a12d
Parent: 314c98d
Committed by GitHub <noreply@github.com>
on 8/23/2023, 10:09:55 AM