]> xenbits.xensource.com Git - libvirt.git/commitdiff
free cpumask of vcpupinDef
authorHu Tao <hutao@cn.fujitsu.com>
Thu, 14 Apr 2011 03:34:26 +0000 (11:34 +0800)
committerEric Blake <eblake@redhat.com>
Thu, 14 Apr 2011 15:47:10 +0000 (09:47 -0600)
cpumask doesn't get freed when vcpupinDef being freed, this leaks
memory.

src/conf/domain_conf.c

index 90a131755721895627157dd9d77128dfe4aa0f31..6116c09c71b6e8942226960a711988d76a78a881 100644 (file)
@@ -858,6 +858,7 @@ virDomainVcpupinDefFree(virDomainVcpupinDefPtr *def,
         return;
 
     for(i = 0; i < nvcpupin; i++) {
+        VIR_FREE(def[i]->cpumask);
         VIR_FREE(def[i]);
     }