]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: monitor: clear cpu props properly in CPUInfoClear
authorJán Tomko <jtomko@redhat.com>
Thu, 18 Feb 2021 13:23:22 +0000 (14:23 +0100)
committerJán Tomko <jtomko@redhat.com>
Thu, 18 Feb 2021 16:14:47 +0000 (17:14 +0100)
commit35ce344bfe64fe399b691b42249ae27cf7e5c887
tree6d14465e484dd177bdf8728211c041dc6fdedbf2
parenta8ed27e70a006083c528b2571bbbc0afa80fb5f4
qemu: monitor: clear cpu props properly in CPUInfoClear

Stay true to the name of the function and clear the pointer
after freeing it.

This also silences a bogus Coverity report about a double
free in qemuMonitorGetCPUInfo where qemuMonitorCPUInfoClear
is called right after allocating a new qemuMonitorCPUInfo
to fill out the non-zero defaults.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
src/qemu/qemu_monitor.c