mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 12:35:17 +00:00
qemu: Don't leak hostcpu or hostnuma on driver cleanup
When freeing qemu driver struct members, we forgot to free @hostcpu and @hostnuma members. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
This commit is contained in:
parent
7cf76d4e3a
commit
39a7dff726
@ -1135,6 +1135,8 @@ qemuStateCleanup(void)
|
||||
virObjectUnref(qemu_driver->domainEventState);
|
||||
virObjectUnref(qemu_driver->qemuCapsCache);
|
||||
virObjectUnref(qemu_driver->xmlopt);
|
||||
virCPUDefFree(qemu_driver->hostcpu);
|
||||
virCapabilitiesHostNUMAUnref(qemu_driver->hostnuma);
|
||||
virObjectUnref(qemu_driver->caps);
|
||||
ebtablesContextFree(qemu_driver->ebtables);
|
||||
VIR_FREE(qemu_driver->qemuImgBinary);
|
||||
|
Loading…
x
Reference in New Issue
Block a user