]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Add VIR_FREE in ADD_BITMAP v9.8.0-rc2
authorAnastasia Belova <abelova@astralinux.ru>
Thu, 28 Sep 2023 11:55:11 +0000 (14:55 +0300)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 29 Sep 2023 07:14:54 +0000 (09:14 +0200)
commit53fe17bb23ca6723dbaacf849bff8461a474d07a
tree33dc171dc4d4a76b1b2dfce1ae145f207704f349
parent7831011058f947db379e692a027fa82a0e7636b4
qemu: Add VIR_FREE in ADD_BITMAP

virBitmapFormat returns the string that should be freed.

All strings in three ADD_BITMAP calls in qemuDomainGetGuestVcpusParams
are contained in tmp. So memory leak is possible here without VIR_FREE.

Fixes: 0108deb944af5ca6f1da350c9d0352c8ed18738b
Signed-off-by: Anastasia Belova <abelova@astralinux.ru>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_driver.c