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:
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,
|
||||
|
||||
Reference in New Issue
Block a user