mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
free cpumask of vcpupinDef
cpumask doesn't get freed when vcpupinDef being freed, this leaks memory.
This commit is contained in:
parent
e63dfb8198
commit
eed9d69e3c
@ -858,6 +858,7 @@ virDomainVcpupinDefFree(virDomainVcpupinDefPtr *def,
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
for(i = 0; i < nvcpupin; i++) {
|
for(i = 0; i < nvcpupin; i++) {
|
||||||
|
VIR_FREE(def[i]->cpumask);
|
||||||
VIR_FREE(def[i]);
|
VIR_FREE(def[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user