From afc13fd32fabe48daa7ae358933e3299827e98bb Mon Sep 17 00:00:00 2001 From: oetiker Date: Tue, 14 May 2002 21:48:05 +0000 Subject: [PATCH] double free fixed git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@139 a5681a0c-68f1-0310-ab6d-d61299d08faa --- src/rrd_restore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rrd_restore.c b/src/rrd_restore.c index e24cc8e..6d7fdf8 100644 --- a/src/rrd_restore.c +++ b/src/rrd_restore.c @@ -410,7 +410,6 @@ rrd_write(char *file_name, rrd_t *rrd) int fd = open(file_name,O_RDWR|O_CREAT|O_EXCL,0666); if (fd == -1 || (rrd_file = fdopen(fd,"wb")) == NULL) { rrd_set_error("creating '%s': %s",file_name,strerror(errno)); - rrd_free(rrd); if (fd != -1) close(fd); return(-1); @@ -513,6 +512,7 @@ rrd_restore(int argc, char **argv) /* a backwards compatibility routine that will parse the RRA params section * generated by the aberrant patch to 1.0.28. */ + void parse_patch1028_RRA_params(char **buf, rrd_t *rrd, int rra_index) { -- 2.11.0