diff options
author | Gregory P. Smith <greg@krypto.org> | 2023-01-23 23:03:26 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-23 23:03:26 (GMT) |
commit | b724ac2fe7fbb5a7a33d639cad8e748f17b325e0 (patch) | |
tree | f17a8c5dcf6f6a5bc7f20e05f964d6f3208ffb58 /Lib/importlib/_bootstrap_external.py | |
parent | bd7903967cd2a19ebc842dd1cce75f60a18aef02 (diff) | |
download | cpython-b724ac2fe7fbb5a7a33d639cad8e748f17b325e0.zip cpython-b724ac2fe7fbb5a7a33d639cad8e748f17b325e0.tar.gz cpython-b724ac2fe7fbb5a7a33d639cad8e748f17b325e0.tar.bz2 |
gh-100795: Don't call freeaddrinfo on failure. (#101252)
When getaddrinfo returns an error, the output pointer is in an unknown state
Don't call freeaddrinfo on it. See the issue for discussion and details with
links to reasoning. _Most_ libc getaddrinfo implementations never modify the
output pointer unless they are returning success.
Co-authored-by: Sergey G. Brester <github@sebres.de>
Co-authored-by: Oleg Iarygin <dralife@yandex.ru>
Diffstat (limited to 'Lib/importlib/_bootstrap_external.py')
0 files changed, 0 insertions, 0 deletions