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