/*****************************************************************************
- * RRDtool 1.2.9 Copyright by Tobi Oetiker, 1997-2005
+ * RRDtool 1.2.17 Copyright by Tobi Oetiker, 1997-2006
*****************************************************************************
* rrd_first Return
*****************************************************************************
};
int option_index = 0;
int opt;
- optind = 0; opterr = 0; /* initialize getopt */
opt = getopt_long(argc, argv, "", long_options, &option_index);
if(opt == EOF)
if((rraindex < 0) || (rraindex >= (int)rrd.stat_head->rra_cnt)) {
rrd_set_error("invalid rraindex number");
+ rrd_free(&rrd);
+ fclose(in_file);
return(-1);
}