mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-74166: break cycle by clearing the list instead of dropping its reference (GH-91685)
This commit is contained in:
parent
e590379197
commit
5b37b49ebc
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue