1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-19 12:39:11 +00:00

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

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);
}
/**