3e5111
From 3bd19fa5ff139e72fcb0e2982969263d554f6940 Mon Sep 17 00:00:00 2001
3e5111
Message-Id: <3bd19fa5ff139e72fcb0e2982969263d554f6940@dist-git>
3e5111
From: Peter Krempa <pkrempa@redhat.com>
3e5111
Date: Fri, 28 Apr 2017 10:45:18 +0200
3e5111
Subject: [PATCH] qemu: process: Clean up priv->migTLSAlias
3e5111
3e5111
The alias would be leaked, since it's not freed on the vm stop path.
3e5111
3e5111
(cherry picked from commit 8c1fee5f12e607a775199b65915715bb5a2b581d)
3e5111
https://bugzilla.redhat.com/show_bug.cgi?id=1445627
3e5111
3e5111
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
3e5111
---
3e5111
 src/qemu/qemu_process.c | 3 +++
3e5111
 1 file changed, 3 insertions(+)
3e5111
3e5111
diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c
3e5111
index c23982db6..2eee70203 100644
3e5111
--- a/src/qemu/qemu_process.c
3e5111
+++ b/src/qemu/qemu_process.c
3e5111
@@ -6443,6 +6443,9 @@ void qemuProcessStop(virQEMUDriverPtr driver,
3e5111
     virDomainUSBAddressSetFree(priv->usbaddrs);
3e5111
     priv->usbaddrs = NULL;
3e5111
 
3e5111
+    /* clean up migration data */
3e5111
+    VIR_FREE(priv->migTLSAlias);
3e5111
+
3e5111
     /* The "release" hook cleans up additional resources */
3e5111
     if (virHookPresent(VIR_HOOK_DRIVER_QEMU)) {
3e5111
         char *xml = qemuDomainDefFormatXML(driver, vm->def, 0);
3e5111
-- 
3e5111
2.12.2
3e5111