Browse Source

Fix memleak: freeaddrinfo() after Server resolve address.

v0.7.4-release
Ryan 16 years ago
parent
commit
193283bc38
  1. 3
      src/net.cc

3
src/net.cc

@ -717,6 +717,9 @@ Acceptor::Listen (const Arguments& args)
address = AddressDefaultToIPv4(address_list); address = AddressDefaultToIPv4(address_list);
acceptor->Listen(address); acceptor->Listen(address);
if (address_list) freeaddrinfo(address_list);
return Undefined(); return Undefined();
} }

Loading…
Cancel
Save