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 8c1fee5f12)
This commit is contained in:
Peter Krempa 2017-04-26 12:46:03 +02:00 committed by Cole Robinson
parent 849fbcf723
commit b4b8804978

View File

@ -6441,6 +6441,9 @@ void qemuProcessStop(virQEMUDriverPtr driver,
virDomainUSBAddressSetFree(priv->usbaddrs); virDomainUSBAddressSetFree(priv->usbaddrs);
priv->usbaddrs = NULL; priv->usbaddrs = NULL;
/* clean up migration data */
VIR_FREE(priv->migTLSAlias);
/* The "release" hook cleans up additional resources */ /* The "release" hook cleans up additional resources */
if (virHookPresent(VIR_HOOK_DRIVER_QEMU)) { if (virHookPresent(VIR_HOOK_DRIVER_QEMU)) {
char *xml = qemuDomainDefFormatXML(driver, vm->def, 0); char *xml = qemuDomainDefFormatXML(driver, vm->def, 0);