mirror of https://github.com/OpenTTD/OpenTTD
Fix f7e390bd: freeaddrinfo() is not guaranteed to handle a nullptr graceful (#9404)
parent
b6fb020388
commit
d38079d053
|
@ -45,7 +45,7 @@ TCPConnecter::~TCPConnecter()
|
||||||
this->sockets.clear();
|
this->sockets.clear();
|
||||||
this->sock_to_address.clear();
|
this->sock_to_address.clear();
|
||||||
|
|
||||||
freeaddrinfo(this->ai);
|
if (this->ai != nullptr) freeaddrinfo(this->ai);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue