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

[libvirt] [PATCH] Free up memballoon def.



Forgetting to do this was causing a memory leak.

Signed-off-by: Chris Lalancette <clalance redhat com>
---
 src/conf/domain_conf.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index ca4bc6e..1ddea0a 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -768,6 +768,8 @@ void virDomainDefFree(virDomainDefPtr def)
 
     virDomainWatchdogDefFree(def->watchdog);
 
+    virDomainMemballoonDefFree(def->memballoon);
+
     virSecurityLabelDefFree(def);
 
     virCPUDefFree(def->cpu);
-- 
1.7.2


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