Commit 6a7cd5ee authored by louiz’'s avatar louiz’

Do not forget to call freeaddrinfo, fix a memleak

For the getaddrinfo call we added in the previous commit, to convert the IP
provided in the conf.
parent 05a82b81
......@@ -68,6 +68,7 @@ void TCPSocketHandler::init_socket(const struct addrinfo* rp)
<< gai_strerror(err));
utils::ScopeGuard sg([result](){ freeaddrinfo(result); });
struct addrinfo* rp;
int bind_error;
for (rp = result; rp; rp = rp->ai_next)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment