From: oetiker Date: Tue, 18 Oct 2011 14:22:04 +0000 (+0000) Subject: free step_list on error. fix for #317 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=525c57429479161d93c545a28643dcb8e3f78ff0;p=rrdtool-all.git free step_list on error. fix for #317 git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@2204 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/src/rrd_xport.c b/program/src/rrd_xport.c index aecd7f37..8f13492a 100644 --- a/program/src/rrd_xport.c +++ b/program/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); }