]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Use 'virBitmapNewCopy' instead of 'virBitmapCopy'
authorPeter Krempa <pkrempa@redhat.com>
Fri, 2 Oct 2020 08:26:34 +0000 (10:26 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 5 Oct 2020 13:50:45 +0000 (15:50 +0200)
commitd8a354954aba9cd45ab0317915a0a2be27c04767
treef7c3a66d364628961b91efda98c6e15b289a6cee
parentfaa88866f51ad606b3792e9944f8497bca1b9ba1
Use 'virBitmapNewCopy' instead of 'virBitmapCopy'

There are only 3 places using the function. Two can use virBitmapNewCopy
directly. In case of the qemu capabilities code we need to free the old
bitmap first.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/conf/capabilities.c
src/qemu/qemu_capabilities.c
src/util/virresctrl.c