mirror of https://github.com/OpenTTD/OpenTTD.git
Fix f7e390bd: freeaddrinfo() is not guaranteed to handle a nullptr graceful (#9404)
This commit is contained in:
parent
b6fb020388
commit
d38079d053
|
@ -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…
Reference in New Issue