Tree wide: Move utilities and libraries to src/utils/.
[collectd.git] / src / daemon / globals.c
index 3d3c7ab..a76a44c 100644 (file)
@@ -22,7 +22,7 @@
  **/
 
 #include "globals.h"
-#include "common.h"
+#include "utils/common/common.h"
 
 #if HAVE_KSTAT_H
 #include <kstat.h>
@@ -43,6 +43,6 @@ void hostname_set(char const *hostname) {
   if (h == NULL)
     return;
 
-  free(hostname_g);
+  sfree(hostname_g);
   hostname_g = h;
 }