From: oetiker Date: Tue, 14 May 2002 21:48:05 +0000 (+0000) Subject: double free fixed X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=78452ae67eb544a4ae8be4ba8c9cab0a6e4bbd81;p=rrdtool-all.git double free fixed git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@139 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/src/rrd_restore.c b/program/src/rrd_restore.c index e24cc8e9..6d7fdf88 100644 --- a/program/src/rrd_restore.c +++ b/program/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) {