From 6cb204b7acad2548e6e8307ae36d3984e5b833ea Mon Sep 17 00:00:00 2001 From: Jiri Denemark Date: Wed, 18 Jan 2017 12:49:33 +0100 Subject: [PATCH] qemu: Reset hostModelInfo in virQEMUCapsReset Signed-off-by: Jiri Denemark --- src/qemu/qemu_capabilities.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c index 89e9dd4719..1e1b53b22e 100644 --- a/src/qemu/qemu_capabilities.c +++ b/src/qemu/qemu_capabilities.c @@ -3752,6 +3752,9 @@ virQEMUCapsReset(virQEMUCapsPtr qemuCaps) VIR_FREE(qemuCaps->gicCapabilities); qemuCaps->ngicCapabilities = 0; + qemuMonitorCPUModelInfoFree(qemuCaps->hostCPUModelInfo); + qemuCaps->hostCPUModelInfo = NULL; + virCPUDefFree(qemuCaps->hostCPUModel); qemuCaps->hostCPUModel = NULL; }