diff options
| author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-08-23 10:10:56 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-23 10:10:56 (GMT) |
| commit | 6f2b64f05195520cb4bd74cebeb37498294f0687 (patch) | |
| tree | b9257ed3686813e704cef3d653bdd0f3c49f256c /Python/pythonrun.c | |
| parent | b4368b5d581b9661d846feb6d9e69ce4f2580e99 (diff) | |
| download | cpython-6f2b64f05195520cb4bd74cebeb37498294f0687.zip cpython-6f2b64f05195520cb4bd74cebeb37498294f0687.tar.gz cpython-6f2b64f05195520cb4bd74cebeb37498294f0687.tar.bz2 | |
[3.8] gh-108342: Break ref cycle in SSLSocket._create() exc (GH-108344) (#108352)
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>
Diffstat (limited to 'Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions
