Re: [PATCH] free cpumask of vcpupinDef

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ä 2011å04æ14æ 11:34, Hu Tao åé:
cpumask doesn't get freed when vcpupinDef being freed, this leaks
memory.
---
  src/conf/domain_conf.c |    1 +
  1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index 1de4c7a..7b6b044 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]);
      }


Oh, Introduced by me, thanks for the fix, ACK, :)

Regards
Osier

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]