[PATCH 3/4] qemu: process: Clean up priv->migTLSAlias

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The alias would be leaked, since it's not freed on the vm stop path.
---
 src/qemu/qemu_process.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c
index 6787c47cf..d3266e778 100644
--- a/src/qemu/qemu_process.c
+++ b/src/qemu/qemu_process.c
@@ -6445,6 +6445,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);
-- 
2.12.2

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux