Repository navigation
Commit 8c57e81
pythongh-108342: Break ref cycle in SSLSocket._create() exc (pythonGH-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>1 parent d31ae21 commit 8c57e81
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1049 | 1049 | | |
1050 | 1050 | | |
1051 | 1051 | | |
1052 | | - | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
1053 | 1057 | | |
1054 | 1058 | | |
1055 | 1059 | | |
| |||
0 commit comments