From e6ccfd268f98bf9e851aaae6cee7ac74691ed5b1 Mon Sep 17 00:00:00 2001 From: oetiker Date: Mon, 19 Sep 2005 07:42:17 +0000 Subject: [PATCH] do not free stuff that gets freed later anyway git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2@685 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/src/rrd_restore.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/program/src/rrd_restore.c b/program/src/rrd_restore.c index 26bbab5b..68923b54 100644 --- a/program/src/rrd_restore.c +++ b/program/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; -- 2.30.2