/* 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 */