summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 37ccda9)
raw | patch | inline | side by side (parent: 37ccda9)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sun, 4 Oct 2009 11:34:00 +0000 (11:34 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sun, 4 Oct 2009 11:34:00 +0000 (11:34 +0000) |
program/src/rrd_flushcached.c | patch | blob | history |
index f7a715e110c85528ae991decff7ea10a8eecd5a7..5d18a1e211549e948f863c978771dbf2c1787bf8 100644 (file)
/* try to connect to rrdcached */
status = rrdc_connect(opt_daemon);
- if (opt_daemon) free(opt_daemon);
if (status != 0) return status;
if (! rrdc_is_connected(opt_daemon))
}
}
+ if (opt_daemon) free(opt_daemon);
+
return ((status == 0) ? 0 : -1);
} /* int rrd_flush */