disk plugin: release udev-based name. Fixes #1781
authorrinigus <rinigus.git@gmail.com>
Fri, 8 Jul 2016 12:36:37 +0000 (15:36 +0300)
committerrinigus <rinigus.git@gmail.com>
Fri, 8 Jul 2016 12:36:37 +0000 (15:36 +0300)
src/disk.c

index 292f6e2..9965bca 100644 (file)
@@ -896,7 +896,7 @@ static int disk_read (void)
                {
 #if HAVE_LIBUDEV
                        /* release udev-based alternate name, if allocated */
-                       sfree (output_name);
+                       sfree (alt_name);
 #endif
                        continue;
                }