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:
Daniel P. Berrangé 2019-12-17 11:29:03 -05:00
parent aed9bcd11b
commit fb5aaf3d05

View File

@ -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__