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:
Peter Krempa 2021-12-07 16:34:00 +01:00
parent 68919edb3b
commit 78db8bf006

View File

@ -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 "