Commit 02971352 authored by Benoit Eudier's avatar Benoit Eudier

Remove freeaddrinfo

This is begin taken care of by another issue and PR.
parent 03103c7e
...@@ -176,9 +176,7 @@ Listener::bind(const Address& address) { ...@@ -176,9 +176,7 @@ Listener::bind(const Address& address) {
TRY(::listen(fd, backlog_)); TRY(::listen(fd, backlog_));
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