]> xenbits.xensource.com Git - libvirt.git/commitdiff
Fix CPU baseline to not hardcode arch
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 19 Dec 2012 10:47:40 +0000 (10:47 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 19 Dec 2012 10:48:06 +0000 (10:48 +0000)
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 <berrange@redhat.com>
src/cpu/cpu_x86.c

index 2001b996585fa341dbfbb2dfb97ac4f98184a239..cb2191025957be23c36ee0fec1e4002001e95ad9 100644 (file)
@@ -1715,6 +1715,8 @@ x86Baseline(virCPUDefPtr *cpus,
     if (!outputVendor)
         VIR_FREE(cpu->vendor);
 
+    cpu->arch = VIR_ARCH_NONE;
+
 cleanup:
     x86ModelFree(base_model);
     x86MapFree(map);