Fix memleak: freeaddrinfo() after Server resolve address.

v0.7.4-release
Ryan 2009-06-16 17:47:59 +02:00
parent 225637a15c
commit 193283bc38
1 changed files with 3 additions and 0 deletions

View File

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