From: Daniel P. Berrange Date: Wed, 19 Dec 2012 10:47:40 +0000 (+0000) Subject: Fix CPU baseline to not hardcode arch X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=1eec6d447ed9dc6df217481b823277dee5244fd7;p=libvirt.git 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 --- 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);