Commit id '74119a03f' neglected to clean up @distances when
the numa definition is cleaned up.
Signed-off-by: John Ferlan <jferlan(a)redhat.com>
---
src/conf/numa_conf.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/conf/numa_conf.c b/src/conf/numa_conf.c
index eadf8f2282..c906a53de0 100644
--- a/src/conf/numa_conf.c
+++ b/src/conf/numa_conf.c
@@ -362,6 +362,9 @@ virDomainNumaFree(virDomainNumaPtr numa)
for (i = 0; i < numa->nmem_nodes; i++) {
virBitmapFree(numa->mem_nodes[i].cpumask);
virBitmapFree(numa->mem_nodes[i].nodeset);
+
+ if (numa->mem_nodes[i].ndistances > 0)
+ VIR_FREE(numa->mem_nodes[i].distances);
}
VIR_FREE(numa->mem_nodes);
--
2.13.6