[PATCH 05/14] locking: Resolve resource leak with 'dir' on non error path

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 src/locking/lock_driver_sanlock.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/locking/lock_driver_sanlock.c b/src/locking/lock_driver_sanlock.c
index d06fa66..df6bee9 100644
--- a/src/locking/lock_driver_sanlock.c
+++ b/src/locking/lock_driver_sanlock.c
@@ -235,6 +235,7 @@ static int virLockManagerSanlockSetupLockspace(void)
                            path);
             goto error;
         }
+        VIR_FREE(dir);
 
         if (driver->group != (gid_t) -1)
             perms |= 0060;
-- 
1.7.11.7

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]