mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 12:35:17 +00:00
lock_driver_lockd: Don't leak lockspace dirs
On daemon deinit only fileLockSpaceDir is freed. The other two (scsiLockSpaceDir and lvmLockSpaceDir) are missing even though they are allocated in virLockManagerLockDaemonLoadConfig(). Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: John Ferlan <jferlan@redhat.com>
This commit is contained in:
parent
676b35ce9c
commit
7e76c8ae08
@ -369,6 +369,8 @@ static int virLockManagerLockDaemonDeinit(void)
|
||||
if (!driver)
|
||||
return 0;
|
||||
|
||||
VIR_FREE(driver->scsiLockSpaceDir);
|
||||
VIR_FREE(driver->lvmLockSpaceDir);
|
||||
VIR_FREE(driver->fileLockSpaceDir);
|
||||
VIR_FREE(driver);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user