From eed9d69e3c2848b59f9184de57d58212780e9cdc Mon Sep 17 00:00:00 2001 From: Hu Tao Date: Thu, 14 Apr 2011 11:34:26 +0800 Subject: [PATCH] free cpumask of vcpupinDef cpumask doesn't get freed when vcpupinDef being freed, this leaks memory. --- src/conf/domain_conf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 90a1317557..6116c09c71 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -858,6 +858,7 @@ virDomainVcpupinDefFree(virDomainVcpupinDefPtr *def, return; for(i = 0; i < nvcpupin; i++) { + VIR_FREE(def[i]->cpumask); VIR_FREE(def[i]); } -- GitLab