free step_list on error. fix for #317
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Tue, 18 Oct 2011 14:22:04 +0000 (14:22 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Tue, 18 Oct 2011 14:22:04 +0000 (14:22 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2204 a5681a0c-68f1-0310-ab6d-d61299d08faa

src/rrd_xport.c

index aecd7f3..8f13492 100644 (file)
@@ -263,6 +263,7 @@ int rrd_xport_fn(
                 while (--j > -1)
                     free(legend_list[j]);
                 free(legend_list);
                 while (--j > -1)
                     free(legend_list[j]);
                 free(legend_list);
+                free(step_list);
                 rrd_set_error("malloc xport legend entry");
                 return (-1);
             }
                 rrd_set_error("malloc xport legend entry");
                 return (-1);
             }