mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2024-12-25 16:18:53 +01:00
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:
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…
Reference in New Issue
Block a user