From: Henrik Nordstrom Date: Fri, 14 May 2010 04:39:44 +0000 (+0200) Subject: Patch cleanup X-Git-Tag: SQUID_3_1_4~25^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8434c42b30e3930827a98537dd8b41f60afb51f1;p=thirdparty%2Fsquid.git Patch cleanup --- diff --git a/src/ip/IpAddress.cc b/src/ip/IpAddress.cc index 4529e757d3..0e5ff9f001 100644 --- a/src/ip/IpAddress.cc +++ b/src/ip/IpAddress.cc @@ -486,6 +486,9 @@ bool IpAddress::LookupHostIP(const char *s, bool nodns) operator=(*res); SetPort(port); + /* free the memory xgetaddrinfo() dynamically allocated. */ + xfreeaddrinfo(res); + res = NULL; return true;