Re: [libvirt] [PATCH] testUpdateQEMUCaps: Don't leak host cpuData

2018-05-31 Thread Jiri Denemark
On Thu, May 31, 2018 at 12:11:36 +0200, Michal Privoznik wrote: > When preparing qemuCaps for test cases the following is > happening: > > qemuTestParseCapabilitiesArch() is called, which calls > virQEMUCapsLoadCache() which in turn calls > virQEMUCapsInitHostCPUModel() which sets qemuCaps->kvmCPU

[libvirt] [PATCH] testUpdateQEMUCaps: Don't leak host cpuData

2018-05-31 Thread Michal Privoznik
When preparing qemuCaps for test cases the following is happening: qemuTestParseCapabilitiesArch() is called, which calls virQEMUCapsLoadCache() which in turn calls virQEMUCapsInitHostCPUModel() which sets qemuCaps->kvmCPU and qemuCaps->tcgCPU. But then the code tries to update the capabilities: