mirror of https://gitee.com/openkylin/libvirt.git
conf: Fix memory leak for distances in virDomainNumaFree
Commit id '74119a03f' neglected to clean up @distances when the numa definition is cleaned up.
This commit is contained in:
parent
ac6cc1d822
commit
9f0ccc717b
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue