mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
virt-host-validate-qemu: Use automatic memory freeing for virBitmap
Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
68919edb3b
commit
78db8bf006
@ -29,7 +29,7 @@
|
||||
|
||||
int virHostValidateQEMU(void)
|
||||
{
|
||||
virBitmap *flags;
|
||||
g_autoptr(virBitmap) flags = NULL;
|
||||
int ret = 0;
|
||||
bool hasHwVirt = false;
|
||||
bool hasVirtFlag = false;
|
||||
@ -98,8 +98,6 @@ int virHostValidateQEMU(void)
|
||||
virHostMsgPass();
|
||||
}
|
||||
|
||||
virBitmapFree(flags);
|
||||
|
||||
if (virHostValidateDeviceExists("QEMU", "/dev/vhost-net",
|
||||
VIR_HOST_VALIDATE_WARN,
|
||||
_("Load the 'vhost_net' module to improve performance "
|
||||
|
Loading…
Reference in New Issue
Block a user