free cpumask of vcpupinDef

cpumask doesn't get freed when vcpupinDef being freed, this leaks
memory.
This commit is contained in:
Hu Tao 2011-04-14 11:34:26 +08:00 committed by Eric Blake
parent e63dfb8198
commit eed9d69e3c

View File

@ -858,6 +858,7 @@ virDomainVcpupinDefFree(virDomainVcpupinDefPtr *def,
return;
for(i = 0; i < nvcpupin; i++) {
VIR_FREE(def[i]->cpumask);
VIR_FREE(def[i]);
}