提交 7e76c8ae 编写于 作者: M Michal Privoznik

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: NMichal Privoznik <mprivozn@redhat.com>
Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
上级 676b35ce
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册