Fix f7e390bd: freeaddrinfo() is not guaranteed to handle a nullptr graceful (#9404)

This commit is contained in:
Patric Stout 2021-06-29 23:02:25 +02:00 committed by GitHub
parent b6fb020388
commit d38079d053
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ TCPConnecter::~TCPConnecter()
this->sockets.clear();
this->sock_to_address.clear();
freeaddrinfo(this->ai);
if (this->ai != nullptr) freeaddrinfo(this->ai);
}
/**