From c928dcd87ff3bab4edd79042231cdccc75e56c2b Mon Sep 17 00:00:00 2001 From: oetiker Date: Mon, 22 Dec 2008 21:23:49 +0000 Subject: [PATCH] should free memory after a successful fetch too ... git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.3/program@1721 a5681a0c-68f1-0310-ab6d-d61299d08faa --- src/rrd_fetch.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rrd_fetch.c b/src/rrd_fetch.c index 83fd88d..3f70432 100644 --- a/src/rrd_fetch.c +++ b/src/rrd_fetch.c @@ -443,6 +443,8 @@ int rrd_fetch_fn( } rrd_close(rrd_file); + rrd_free(&rrd); + return (0); err_free_data: free(*data); -- 2.30.2