|
|
43fe83 |
From 0ab9ef832c9e5531c1428e0274d46a29b0be4637 Mon Sep 17 00:00:00 2001
|
|
|
43fe83 |
Message-Id: <0ab9ef832c9e5531c1428e0274d46a29b0be4637.1380703761.git.jdenemar@redhat.com>
|
|
|
43fe83 |
From: Jiri Denemark <jdenemar@redhat.com>
|
|
|
43fe83 |
Date: Fri, 27 Sep 2013 16:02:38 +0200
|
|
|
43fe83 |
Subject: [PATCH] qemu: Free all driver data in qemuStateCleanup
|
|
|
43fe83 |
|
|
|
43fe83 |
https://bugzilla.redhat.com/show_bug.cgi?id=1011330 (case A)
|
|
|
43fe83 |
|
|
|
43fe83 |
While activeScsiHostdevs and webSocketPorts were allocated in
|
|
|
43fe83 |
qemuStateInitialize, they were not freed in qemuStateCleanup.
|
|
|
43fe83 |
|
|
|
43fe83 |
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
|
|
|
43fe83 |
(cherry picked from commit 9e03f313b80d6b7daef90235b607e7ed80dd7235)
|
|
|
43fe83 |
---
|
|
|
43fe83 |
src/qemu/qemu_driver.c | 2 ++
|
|
|
43fe83 |
1 file changed, 2 insertions(+)
|
|
|
43fe83 |
|
|
|
43fe83 |
diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
|
|
|
43fe83 |
index 693dd85..fd548b2 100644
|
|
|
43fe83 |
--- a/src/qemu/qemu_driver.c
|
|
|
43fe83 |
+++ b/src/qemu/qemu_driver.c
|
|
|
43fe83 |
@@ -986,12 +986,14 @@ qemuStateCleanup(void) {
|
|
|
43fe83 |
virObjectUnref(qemu_driver->activePciHostdevs);
|
|
|
43fe83 |
virObjectUnref(qemu_driver->inactivePciHostdevs);
|
|
|
43fe83 |
virObjectUnref(qemu_driver->activeUsbHostdevs);
|
|
|
43fe83 |
+ virObjectUnref(qemu_driver->activeScsiHostdevs);
|
|
|
43fe83 |
virHashFree(qemu_driver->sharedDevices);
|
|
|
43fe83 |
virObjectUnref(qemu_driver->caps);
|
|
|
43fe83 |
virQEMUCapsCacheFree(qemu_driver->qemuCapsCache);
|
|
|
43fe83 |
|
|
|
43fe83 |
virObjectUnref(qemu_driver->domains);
|
|
|
43fe83 |
virObjectUnref(qemu_driver->remotePorts);
|
|
|
43fe83 |
+ virObjectUnref(qemu_driver->webSocketPorts);
|
|
|
43fe83 |
|
|
|
43fe83 |
virObjectUnref(qemu_driver->xmlopt);
|
|
|
43fe83 |
|
|
|
43fe83 |
--
|
|
|
43fe83 |
1.8.3.2
|
|
|
43fe83 |
|