summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b3ad447)
raw | patch | inline | side by side (parent: b3ad447)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 14 May 2002 21:48:05 +0000 (21:48 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 14 May 2002 21:48:05 +0000 (21:48 +0000) |
src/rrd_restore.c | patch | blob | history |
diff --git a/src/rrd_restore.c b/src/rrd_restore.c
index e24cc8e990d2ac4cf8f466241555c5d26f7a8db4..6d7fdf88fbf4a9c37e9ce4a8b924982134d5cada 100644 (file)
--- a/src/rrd_restore.c
+++ b/src/rrd_restore.c
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);
/* 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)
{