Re: [libvirt] [PATCH] qemu_capabilities: Use proper free function for caps->cpuModels

2019-11-25 Thread Jiri Denemark
On Mon, Nov 25, 2019 at 16:41:33 +0100, Michal Privoznik wrote: > The cpuModels member of _virQEMUCapsAccel struct is not a > virObject but regular struct with a free function defined: > qemuMonitorCPUDefsFree(). Use that when clearing parent structure > instead of virObjectUnref() to avoid a memle

[libvirt] [PATCH] qemu_capabilities: Use proper free function for caps->cpuModels

2019-11-25 Thread Michal Privoznik
The cpuModels member of _virQEMUCapsAccel struct is not a virObject but regular struct with a free function defined: qemuMonitorCPUDefsFree(). Use that when clearing parent structure instead of virObjectUnref() to avoid a memleak: ==212322== 57,275 (48 direct, 57,227 indirect) bytes in 3 blocks ar