Use qemuCapsFreeCPUModels() in qemuBuildCpuArgStr().
Because it's there.
---
src/qemu/qemu_command.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
Index: libvirt-0.9.10/src/qemu/qemu_command.c
===================================================================
--- libvirt-0.9.10.orig/src/qemu/qemu_command.c
+++ libvirt-0.9.10/src/qemu/qemu_command.c
@@ -3651,11 +3651,7 @@ cleanup:
virCPUDefFree(guest);
virCPUDefFree(cpu);
- if (cpus) {
- for (i = 0; i < ncpus; i++)
- VIR_FREE(cpus[i]);
- VIR_FREE(cpus);
- }
+ qemuCapsFreeCPUModels(&ncpus, &cpus);
return ret;