diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2022-04-19 09:09:10 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-19 09:09:10 (GMT) |
commit | 5b37b49ebc7a81e0a3f9b60ef82e804ab9e1badf (patch) | |
tree | 0c8992f2ceebc9819a985c7c48e6111e56ca8f3f /Lib/socket.py | |
parent | e590379197f065f52c8140c0edd7a59360216531 (diff) | |
download | cpython-5b37b49ebc7a81e0a3f9b60ef82e804ab9e1badf.zip cpython-5b37b49ebc7a81e0a3f9b60ef82e804ab9e1badf.tar.gz cpython-5b37b49ebc7a81e0a3f9b60ef82e804ab9e1badf.tar.bz2 |
gh-74166: break cycle by clearing the list instead of dropping its reference (GH-91685)
Diffstat (limited to 'Lib/socket.py')
-rwxr-xr-x | Lib/socket.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/socket.py b/Lib/socket.py index 97362d9..28d9c89 100755 --- a/Lib/socket.py +++ b/Lib/socket.py @@ -851,7 +851,7 @@ def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, raise ExceptionGroup("create_connection failed", exceptions) finally: # Break explicitly a reference cycle - exceptions = None + exceptions.clear() else: raise error("getaddrinfo returns an empty list") |