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(); }