From 6b143c13e762ea84fa5e6e2f0cd197831256403c Mon Sep 17 00:00:00 2001 From: oetiker Date: Wed, 12 May 2010 08:45:09 +0000 Subject: [PATCH] rrd_daemon: after fetching data must be freed ! -- Thorsten von Eicken git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@2081 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/src/rrd_daemon.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/program/src/rrd_daemon.c b/program/src/rrd_daemon.c index b80ddc49..4c7b6bd2 100644 --- a/program/src/rrd_daemon.c +++ b/program/src/rrd_daemon.c @@ -1628,7 +1628,9 @@ static int handle_request_fetch (HANDLER_PROTO) /* {{{ */ if (i > 0) SSTRCAT (linebuf, " ", linebuf_fill); SSTRCAT (linebuf, ds_namv[i], linebuf_fill); + rrd_freemem(ds_namv[i]); } + rrd_freemem(ds_namv); add_response_info (sock, "DSName: %s\n", linebuf); } @@ -1654,6 +1656,7 @@ static int handle_request_fetch (HANDLER_PROTO) /* {{{ */ add_response_info (sock, "%10lu:%s\n", (unsigned long) t, linebuf); } /* for (t) */ + rrd_freemem(data); return (send_response (sock, RESP_OK, "Success\n")); #undef SSTRCAT -- 2.30.2