mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00: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,
|
||||
nodeinfo.memory,
|
||||
#ifdef __linux__
|
||||
|
Loading…
x
Reference in New Issue
Block a user