Minor changes to address PR comments.
[collectd.git] / src / daemon / globals.c
index 3d3c7ab..207ca05 100644 (file)
@@ -43,6 +43,6 @@ void hostname_set(char const *hostname) {
   if (h == NULL)
     return;
 
-  free(hostname_g);
+  sfree(hostname_g);
   hostname_g = h;
 }