From 14fcea1e7823dc025b9a231f2146dcac6f6fca27 Mon Sep 17 00:00:00 2001 From: oetiker Date: Tue, 18 Oct 2011 14:22:04 +0000 Subject: [PATCH] free step_list on error. fix for #317 git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.4/program@2204 a5681a0c-68f1-0310-ab6d-d61299d08faa --- src/rrd_xport.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rrd_xport.c b/src/rrd_xport.c index 3eafb3e..f6e5941 100644 --- a/src/rrd_xport.c +++ b/src/rrd_xport.c @@ -263,6 +263,7 @@ int rrd_xport_fn( while (--j > -1) free(legend_list[j]); free(legend_list); + free(step_list); rrd_set_error("malloc xport legend entry"); return (-1); } -- 2.30.2