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

pull/332/head
Patric Stout 3 years ago committed by GitHub
parent b6fb020388
commit d38079d053
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save