mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2024-11-28 19:14:14 +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);
|
freeaddrinfo(ai);
|
||||||
throw;
|
throw;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
freeaddrinfo(ai);
|
||||||
}
|
}
|
||||||
|
|
||||||
void network::createTcpListeners(std::list<SocketListener*> *listeners,
|
void network::createTcpListeners(std::list<SocketListener*> *listeners,
|
||||||
|
Loading…
Reference in New Issue
Block a user