From 8434c42b30e3930827a98537dd8b41f60afb51f1 Mon Sep 17 00:00:00 2001 From: Henrik Nordstrom Date: Fri, 14 May 2010 06:39:44 +0200 Subject: [PATCH] Patch cleanup --- src/ip/IpAddress.cc | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.47.3