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/trunk@1721 a5681a0c-68f1-0310-ab6d-d61299d08faa

program/src/rrd_fetch.c

index 8a0a3ec1cb8e711f356c519ed582247d3369355f..23be6e03d805b898c9243092f379c3021d4352f1 100644 (file)
@@ -467,6 +467,7 @@ int rrd_fetch_fn(
     }
 
     rrd_close(rrd_file);
+    rrd_free(&rrd);
     return (0);
   err_free_data:
     free(*data);