uuid plugin: make it work on FreeBSD
[collectd.git] / src / disk.c
index 292f6e2..a798a89 100644 (file)
@@ -22,6 +22,7 @@
  **/
 
 #include "collectd.h"
+
 #include "common.h"
 #include "plugin.h"
 #include "utils_ignorelist.h"
@@ -896,7 +897,7 @@ static int disk_read (void)
                {
 #if HAVE_LIBUDEV
                        /* release udev-based alternate name, if allocated */
-                       sfree (output_name);
+                       sfree (alt_name);
 #endif
                        continue;
                }