From: oetiker Date: Mon, 25 Oct 2010 05:40:26 +0000 (+0000) Subject: free addrinfo list after use ... -- Christian Magnusson X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c680f4836011b8969f98d9066fe2761f0abe411f;p=rrdtool-all.git free addrinfo list after use ... -- Christian Magnusson git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.4@2138 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/src/rrd_client.c b/program/src/rrd_client.c index 47333df0..bbc1c490 100644 --- a/program/src/rrd_client.c +++ b/program/src/rrd_client.c @@ -502,6 +502,8 @@ static int rrdc_connect_network (const char *addr_orig) /* {{{ */ break; } /* for (ai_ptr) */ + freeaddrinfo(ai_res); + return (status); } /* }}} int rrdc_connect_network */