mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06: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)
|
int virHostValidateQEMU(void)
|
||||||
{
|
{
|
||||||
virBitmap *flags;
|
g_autoptr(virBitmap) flags = NULL;
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
bool hasHwVirt = false;
|
bool hasHwVirt = false;
|
||||||
bool hasVirtFlag = false;
|
bool hasVirtFlag = false;
|
||||||
@ -98,8 +98,6 @@ int virHostValidateQEMU(void)
|
|||||||
virHostMsgPass();
|
virHostMsgPass();
|
||||||
}
|
}
|
||||||
|
|
||||||
virBitmapFree(flags);
|
|
||||||
|
|
||||||
if (virHostValidateDeviceExists("QEMU", "/dev/vhost-net",
|
if (virHostValidateDeviceExists("QEMU", "/dev/vhost-net",
|
||||||
VIR_HOST_VALIDATE_WARN,
|
VIR_HOST_VALIDATE_WARN,
|
||||||
_("Load the 'vhost_net' module to improve performance "
|
_("Load the 'vhost_net' module to improve performance "
|
||||||
|
Loading…
Reference in New Issue
Block a user