From: oetiker Date: Mon, 19 Sep 2005 07:42:17 +0000 (+0000) Subject: do not free stuff that gets freed later anyway X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6384b694bd003c56f462c439551e8af8ce697204;p=rrdtool.git do not free stuff that gets freed later anyway git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@685 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/src/rrd_restore.c b/src/rrd_restore.c index 26bbab5..68923b5 100644 --- a/src/rrd_restore.c +++ b/src/rrd_restore.c @@ -132,13 +132,11 @@ int xml2rrd(char* buf, rrd_t* rrd, char rc){ { rrd_set_error("Incompatible file version, detected version %s is bigger than supported version %s\n", rrd -> stat_head -> version, RRD_VERSION ); - free(rrd -> stat_head); return -1; } if (atoi(rrd -> stat_head -> version) < 2) { rrd_set_error("Can only restore version >= 2 (Not %s). Dump your old rrd using a current rrdtool dump.", rrd -> stat_head -> version ); - free(rrd -> stat_head); return -1; } rrd->stat_head->float_cookie = FLOAT_COOKIE;