diff --git a/dll/network.cpp b/dll/network.cpp index 47cb5f587..60b6b4cd9 100644 --- a/dll/network.cpp +++ b/dll/network.cpp @@ -110,7 +110,7 @@ static void get_broadcast_info(uint16 port) number_broadcasts++; if (number_broadcasts >= MAX_BROADCASTS) { - return; + break; } } @@ -542,6 +542,8 @@ std::set Networking::resolve_ip(std::string dns) } } + if (result) + freeaddrinfo(result); return ips; }