summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 31ccd11)
raw | patch | inline | side by side (parent: 31ccd11)
author | campbellsean@google.com <campbellsean@google.com> | |
Wed, 18 Oct 2017 20:48:50 +0000 (16:48 -0400) | ||
committer | campbellsean@google.com <campbellsean@google.com> | |
Wed, 18 Oct 2017 20:48:50 +0000 (16:48 -0400) |
src/daemon/collectd.c | patch | blob | history | |
src/daemon/globals.c | patch | blob | history |
diff --git a/src/daemon/collectd.c b/src/daemon/collectd.c
index 791199ffb6302a8968749a23bedb677cd1d93f12..4df11bcf8f8491e732bd654e7443ad919a594a65 100644 (file)
--- a/src/daemon/collectd.c
+++ b/src/daemon/collectd.c
hostname_len = NI_MAXHOST;
}
char hostname[hostname_len];
- hostname_set(hostname);
str = global_option_get("Hostname");
if ((str != NULL) && (str[0] != 0)) {
diff --git a/src/daemon/globals.c b/src/daemon/globals.c
index 3d3c7ab2b7cfcb6a125783fdc95fcd792ce320ca..207ca05d68362a4ab168c6d16b968db3394c58b9 100644 (file)
--- a/src/daemon/globals.c
+++ b/src/daemon/globals.c
if (h == NULL)
return;
- free(hostname_g);
+ sfree(hostname_g);
hostname_g = h;
}