mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
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 <berrange@redhat.com>
This commit is contained in:
parent
32df483f1d
commit
1eec6d447e
@ -1715,6 +1715,8 @@ x86Baseline(virCPUDefPtr *cpus,
|
||||
if (!outputVendor)
|
||||
VIR_FREE(cpu->vendor);
|
||||
|
||||
cpu->arch = VIR_ARCH_NONE;
|
||||
|
||||
cleanup:
|
||||
x86ModelFree(base_model);
|
||||
x86MapFree(map);
|
||||
|
Loading…
x
Reference in New Issue
Block a user