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