mirror of
https://github.com/libvirt/libvirt.git
synced 2025-01-23 23:13:28 -06:00
tools: virt-host-validate: fix memory leak
virHostValidateGetCPUFlags returns an allocated virBitmap and
it needs to be freed.
Fixes: a0ec7165e3
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…
Reference in New Issue
Block a user