mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 23:58:20 +00:00
Fix a memory leak when bind() fails due to EADDRINUSE.
This commit is contained in:
parent
dde0ce234f
commit
d57b161c40
1 changed files with 1 additions and 0 deletions
|
@ -4212,6 +4212,7 @@ bool SocketComm::Listen()
|
|||
safe_close(fd);
|
||||
CloseListenFDs();
|
||||
listen_next_try = time(0) + bind_retry_interval;
|
||||
freeaddrinfo(res0);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue