]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuProcessUpdateDevices: Refactor cleanup and memory handling
authorPeter Krempa <pkrempa@redhat.com>
Wed, 3 Feb 2021 17:39:01 +0000 (18:39 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 11 Feb 2021 16:05:33 +0000 (17:05 +0100)
commitd9f7e87673b02cd0411fda48efeb6d71adc7364c
tree8d09bfc3549bbd3012b7fad4335f548aace6856f
parentca1899fc455321427ab60424b61a68715342b036
qemuProcessUpdateDevices: Refactor cleanup and memory handling

Use automatic memory freeing and remove the 'cleanup' label. Also make
it a bit more obvious that nothing happens if the 'old' list wasn't
present.

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