提交 9f0ccc71 编写于 作者: J John Ferlan

conf: Fix memory leak for distances in virDomainNumaFree

Commit id '74119a03' neglected to clean up @distances when
the numa definition is cleaned up.
上级 ac6cc1d8
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册