Code

battery plugin: Fix type in a warning.
[collectd.git] / src / smart.c
index 3b113bd33a2d45978622fc0512efe3e11f7eec38..2207bd6722449f4de11c3b89a976817ba8702558 100644 (file)
@@ -253,6 +253,7 @@ static int smart_read (void)
 
     /* Query status with libatasmart */
     smart_handle_disk (devpath);
+    udev_device_unref (dev);
   }
 
   udev_enumerate_unref (enumerate);