mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-30 16:35:24 +00:00
tools: virt-host-validate: fix memory leak
virHostValidateGetCPUFlags returns an allocated virBitmap and it needs to be freed. Fixes: a0ec7165e3bbc416478740f6d2e8fef2ece18602 Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Kristína Hanicová <khanicov@redhat.com>
This commit is contained in:
parent
edd1fd8ca9
commit
097d3a4f56
@ -28,7 +28,7 @@
|
||||
int virHostValidateCh(void)
|
||||
{
|
||||
int ret = 0;
|
||||
virBitmap *flags;
|
||||
g_autoptr(virBitmap) flags = NULL;
|
||||
bool hasHwVirt = false;
|
||||
bool hasVirtFlag = false;
|
||||
virArch arch = virArchFromHost();
|
||||
|
Loading…
x
Reference in New Issue
Block a user