Code

fixed leak in VDEF_PERCENT handlin -- Perry Stoll <perry_stoll@yahoo.com>
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Mon, 2 Sep 2002 18:41:19 +0000 (18:41 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Mon, 2 Sep 2002 18:41:19 +0000 (18:41 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@162 a5681a0c-68f1-0310-ab6d-d61299d08faa

program/src/rrd_graph.c

index 2fc65263a5d3e93564b64abfb171da7650bbef36..a405a29fa728493f5617243bd77aa508f76ce053 100644 (file)
@@ -3204,6 +3204,7 @@ printf("DEBUG: start == %lu, end == %lu, %lu steps\n"
                field = (steps-1)*dst->vf.param/100;
                dst->vf.val  = array[field];
                dst->vf.when = 0;       /* no time component */
+               free(array);
 #if 0
 for(step=0;step<steps;step++)
 printf("DEBUG: %3li:%10.2f %c\n",step,array[step],step==field?'*':' ');