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

[libvirt] [PATCH 1/4] Fix memory leaks in MDNS code



From: "Daniel P. Berrange" <berrange redhat com>

* src/rpc/virnetservermdns.c: Fix leaks
---
 src/rpc/virnetservermdns.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/rpc/virnetservermdns.c b/src/rpc/virnetservermdns.c
index ff2d92d..335274a 100644
--- a/src/rpc/virnetservermdns.c
+++ b/src/rpc/virnetservermdns.c
@@ -583,6 +583,7 @@ void virNetServerMDNSFree(virNetServerMDNSPtr mdns)
         group = tmp;
     }
 
+    VIR_FREE(mdns->poller);
     VIR_FREE(mdns);
 }
 
@@ -601,6 +602,7 @@ void virNetServerMDNSGroupFree(virNetServerMDNSGroupPtr grp)
         entry = tmp;
     }
 
+    VIR_FREE(grp->name);
     VIR_FREE(grp);
 }
 
@@ -610,5 +612,6 @@ void virNetServerMDNSEntryFree(virNetServerMDNSEntryPtr entry)
     if (!entry)
         return;
 
+    VIR_FREE(entry->type);
     VIR_FREE(entry);
 }
-- 
1.7.6


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