From 4ea1c9b553bfa7a651425c7315dbb21237f07558 Mon Sep 17 00:00:00 2001 From: oetiker Date: Mon, 25 Oct 2010 05:40:26 +0000 Subject: [PATCH] free addrinfo list after use ... -- Christian Magnusson git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.4/program@2138 a5681a0c-68f1-0310-ab6d-d61299d08faa --- src/rrd_client.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rrd_client.c b/src/rrd_client.c index 47333df..bbc1c49 100644 --- a/src/rrd_client.c +++ b/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 */ -- 2.30.2