X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrd_first.c;h=c1c545fd2e4070e114a41ccf9ffdeb51bec76c7b;hb=7a942d263044e07b9e861472361b544d4133af71;hp=9414b0a6010f242038e9ed729fa562a30ef84aaf;hpb=600a55915eee335b4771cdcf5ee5737d9b55fcd4;p=rrdtool.git diff --git a/src/rrd_first.c b/src/rrd_first.c index 9414b0a..c1c545f 100644 --- a/src/rrd_first.c +++ b/src/rrd_first.c @@ -1,5 +1,5 @@ /***************************************************************************** - * RRDtool 1.2.9 Copyright by Tobi Oetiker, 1997-2005 + * RRDtool 1.2.15 Copyright by Tobi Oetiker, 1997-2006 ***************************************************************************** * rrd_first Return ***************************************************************************** @@ -68,6 +68,8 @@ rrd_first_r(const char *filename, const int rraindex) if((rraindex < 0) || (rraindex >= (int)rrd.stat_head->rra_cnt)) { rrd_set_error("invalid rraindex number"); + rrd_free(&rrd); + fclose(in_file); return(-1); }