Free memory from getaddrinfo()

We handled this in the failure scenario, but not in the vastly more
common successful case.
This commit is contained in:
Pierre Ossman 2020-08-17 14:02:28 +02:00 committed by Lauri Kasanen
parent f814a93214
commit 3528e358cc

View File

@ -610,6 +610,8 @@ void network::createTcpListeners(std::list<SocketListener*> *listeners,
freeaddrinfo(ai);
throw;
}
freeaddrinfo(ai);
}
void network::createTcpListeners(std::list<SocketListener*> *listeners,