Add standard include early or _FILE_OFFSET_BITS will have definition mismatches on...
[collectd.git] / src / daemon / globals.c
index 3d3c7ab..5409294 100644 (file)
@@ -21,8 +21,8 @@
  * DEALINGS IN THE SOFTWARE.
  **/
 
+#include "utils/common/common.h"
 #include "globals.h"
-#include "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;
 }