]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virQEMUCapsGetMachineTypesCaps: Use GPtrArray
authorTim Wiederhake <twiederh@redhat.com>
Thu, 8 Jul 2021 11:10:38 +0000 (13:10 +0200)
committerTim Wiederhake <twiederh@redhat.com>
Mon, 19 Jul 2021 10:48:30 +0000 (12:48 +0200)
commitb2435f10ac16b7a25788a3863df8cb40fe91bf98
tree8a1a787003d9ea22b2fc824b4be0a7bee8cf6de1
parent3ea1ec7fa22ea2c4f0063973ac9046d186eff0cc
virQEMUCapsGetMachineTypesCaps: Use GPtrArray

This simplyfies the code a bit and removes one "goto", one "VIR_FREE",
and one "VIR_INSERT_ELEMENT_COPY".

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_capabilities.c