diff options
-rw-r--r-- | src/net.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/net.cc b/src/net.cc index 3efd357a9f..c4213667c1 100644 --- a/src/net.cc +++ b/src/net.cc @@ -717,6 +717,9 @@ Acceptor::Listen (const Arguments& args) address = AddressDefaultToIPv4(address_list); acceptor->Listen(address); + + if (address_list) freeaddrinfo(address_list); + return Undefined(); } |