1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-03-20 06:50:22 +03:00

qemu: process: Clean up priv->migTLSAlias

The alias would be leaked, since it's not freed on the vm stop path.
This commit is contained in:
Peter Krempa 2017-04-26 12:46:03 +02:00
parent 3ab802d689
commit 8c1fee5f12

View File

@ -6447,6 +6447,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);