Free memory from getaddrinfo()

We handled this in the failure scenario, but not in the vastly more
common successful case.
pull/8/head
Pierre Ossman 5 years ago committed by Lauri Kasanen
parent f814a93214
commit 3528e358cc

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

Loading…
Cancel
Save