提交 268cc6e9 编写于 作者: D Daniel P. Berrange 提交者: Daniel Veillard

Fix memory leaks in MDNS code

* src/rpc/virnetservermdns.c: Fix leaks
上级 7e853d6c
...@@ -583,6 +583,7 @@ void virNetServerMDNSFree(virNetServerMDNSPtr mdns) ...@@ -583,6 +583,7 @@ void virNetServerMDNSFree(virNetServerMDNSPtr mdns)
group = tmp; group = tmp;
} }
VIR_FREE(mdns->poller);
VIR_FREE(mdns); VIR_FREE(mdns);
} }
...@@ -601,6 +602,7 @@ void virNetServerMDNSGroupFree(virNetServerMDNSGroupPtr grp) ...@@ -601,6 +602,7 @@ void virNetServerMDNSGroupFree(virNetServerMDNSGroupPtr grp)
entry = tmp; entry = tmp;
} }
VIR_FREE(grp->name);
VIR_FREE(grp); VIR_FREE(grp);
} }
...@@ -610,5 +612,6 @@ void virNetServerMDNSEntryFree(virNetServerMDNSEntryPtr entry) ...@@ -610,5 +612,6 @@ void virNetServerMDNSEntryFree(virNetServerMDNSEntryPtr entry)
if (!entry) if (!entry)
return; return;
VIR_FREE(entry->type);
VIR_FREE(entry); VIR_FREE(entry);
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册