Fix a memory leak when bind() fails due to EADDRINUSE.

This commit is contained in:
Jon Siwek 2014-09-02 16:18:55 -05:00
parent dde0ce234f
commit d57b161c40

View file

@ -4212,6 +4212,7 @@ bool SocketComm::Listen()
safe_close(fd);
CloseListenFDs();
listen_next_try = time(0) + bind_retry_interval;
freeaddrinfo(res0);
return false;
}