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 09:47:10 -06:00
committed by Eric Blake
parent e63dfb8198
commit eed9d69e3c
+1
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]);
}