Commit 4b964416 authored by Benoit Eudier's avatar Benoit Eudier

Free memory allocated to addrs

parent 51416485
......@@ -177,6 +177,8 @@ Listener::bind(const Address& address) {
break;
}
freeaddrinfo(addrs);
// At this point, it is still possible that we couldn't bind any socket. If it is the case, the previous
// loop would have exited naturally and addr will be null.
if (addr == nullptr) {
......
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