summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e49b774)
raw | patch | inline | side by side (parent: e49b774)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Wed, 11 Jul 2007 23:08:47 +0000 (23:08 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Wed, 11 Jul 2007 23:08:47 +0000 (23:08 +0000) |
program/src/rrd_create.c | patch | blob | history |
index 4c9943ed6e5a18b6de0c5befbf125c0adcb76655..a5c304fb13b874c6736272801c1180cc39236c8d 100644 (file)
--- a/program/src/rrd_create.c
+++ b/program/src/rrd_create.c
if ((rrd_file = fopen(file_name, "wb")) == NULL) {
rrd_set_error("creating '%s': %s", file_name, rrd_strerror(errno));
- free(rrd->stat_head);
- rrd->stat_head = NULL;
- free(rrd->ds_def);
- rrd->ds_def = NULL;
- free(rrd->rra_def);
- rrd->rra_def = NULL;
+ rrd_free(rrd);
return (-1);
}