Code

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 292f6e29cf4d06959cd4c799b97a3eadac3dafa4..9965bca7da17176a114e1532fdbbacb63e8abaae 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;
                }