From 1eec6d447ed9dc6df217481b823277dee5244fd7 Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Wed, 19 Dec 2012 10:47:40 +0000 Subject: [PATCH] Fix CPU baseline to not hardcode arch Prior to the virArch changes, the CPU baseline method would free the arch string in the returned CPU. Fix the regression by setting arch to VIR_ARCH_NONE at the end Signed-off-by: Daniel P. Berrange --- src/cpu/cpu_x86.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cpu/cpu_x86.c b/src/cpu/cpu_x86.c index 2001b99658..cb21910259 100644 --- a/src/cpu/cpu_x86.c +++ b/src/cpu/cpu_x86.c @@ -1715,6 +1715,8 @@ x86Baseline(virCPUDefPtr *cpus, if (!outputVendor) VIR_FREE(cpu->vendor); + cpu->arch = VIR_ARCH_NONE; + cleanup: x86ModelFree(base_model); x86MapFree(map); -- 2.47.3