mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
conf: avoid mem leak re-allocating fake NUMA capabilities
The 'caps' object is already allocated when the fake NUMA initialization takes place. Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
aed9bcd11b
commit
fb5aaf3d05
@ -1631,9 +1631,6 @@ virCapabilitiesHostNUMAInitFake(virCapsHostNUMAPtr caps)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
caps = g_new0(virCapsHostNUMA, 1);
|
|
||||||
caps->cells = g_ptr_array_new_with_free_func(
|
|
||||||
(GDestroyNotify)virCapabilitiesFreeHostNUMACell);
|
|
||||||
virCapabilitiesHostNUMAAddCell(caps, 0,
|
virCapabilitiesHostNUMAAddCell(caps, 0,
|
||||||
nodeinfo.memory,
|
nodeinfo.memory,
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
|
Loading…
Reference in New Issue
Block a user