Merge pull request #1076 from schuellerf/master
authorPierre-Yves Ritschard <pyr@spootnik.org>
Wed, 10 Jun 2015 13:51:53 +0000 (15:51 +0200)
committerPierre-Yves Ritschard <pyr@spootnik.org>
Wed, 10 Jun 2015 13:51:53 +0000 (15:51 +0200)
Update smart.c

src/smart.c

index 3b113bd..a9c563e 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);