]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuProcessSetupHotpluggableVcpus: Use automatic memory freeing
authorPeter Krempa <pkrempa@redhat.com>
Wed, 4 Aug 2021 09:33:35 +0000 (11:33 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 6 Aug 2021 06:53:26 +0000 (08:53 +0200)
commita257668edef5ebcdc84a9e425ee2c8bbe7fce067
treeca07e69d1a0f4e1644efa5f7bd4eecc637a3da4b
parent0b6888451feb216c74393982968460328d7db6b7
qemuProcessSetupHotpluggableVcpus: Use automatic memory freeing

'bootHotplug' can be auto-freed when terminating the function and moving
the declaration of 'vcpuprops' to the loop which uses it along with
automatic freeing allows us to simplify cleanup in certain cases.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_process.c