Code

should free memory after a successful fetch too ...
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Mon, 22 Dec 2008 21:23:49 +0000 (21:23 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Mon, 22 Dec 2008 21:23:49 +0000 (21:23 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.3@1721 a5681a0c-68f1-0310-ab6d-d61299d08faa

program/src/rrd_fetch.c

index 83fd88d343c40ea2f6d0693a7141b215814ed453..3f7043289b232638c77900b5b85b376d3540bb78 100644 (file)
@@ -443,6 +443,8 @@ int rrd_fetch_fn(
     }
 
     rrd_close(rrd_file);
+    rrd_free(&rrd);
+
     return (0);
   err_free_data:
     free(*data);