提交 b4b88049 编写于 作者: P Peter Krempa 提交者: Cole Robinson

qemu: process: Clean up priv->migTLSAlias

The alias would be leaked, since it's not freed on the vm stop path.

(cherry picked from commit 8c1fee5f)
上级 849fbcf7
......@@ -6441,6 +6441,9 @@ void qemuProcessStop(virQEMUDriverPtr driver,
virDomainUSBAddressSetFree(priv->usbaddrs);
priv->usbaddrs = NULL;
/* clean up migration data */
VIR_FREE(priv->migTLSAlias);
/* The "release" hook cleans up additional resources */
if (virHookPresent(VIR_HOOK_DRIVER_QEMU)) {
char *xml = qemuDomainDefFormatXML(driver, vm->def, 0);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册