提交 d200363e 编写于 作者: D Daniel P. Berrange

Fix leak of securityDriverNames

When shutting down, the QEMU driver forgot to free the
securityDriverNames string list
Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
上级 4e4c6620
......@@ -1134,6 +1134,9 @@ qemuShutdown(void) {
VIR_FREE(qemu_driver->saveImageFormat);
VIR_FREE(qemu_driver->dumpImageFormat);
for (i = 0 ; qemu_driver->securityDriverNames[i] != NULL ; i++)
VIR_FREE(qemu_driver->securityDriverNames[i]);
VIR_FREE(qemu_driver->securityDriverNames);
virSecurityManagerFree(qemu_driver->securityManager);
ebtablesContextFree(qemu_driver->ebtables);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册