mirror of https://github.com/nodejs/node.git
Fix memleak: freeaddrinfo() after Server resolve address.
parent
225637a15c
commit
193283bc38
|
@ -717,6 +717,9 @@ Acceptor::Listen (const Arguments& args)
|
|||
address = AddressDefaultToIPv4(address_list);
|
||||
|
||||
acceptor->Listen(address);
|
||||
|
||||
if (address_list) freeaddrinfo(address_list);
|
||||
|
||||
return Undefined();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue