mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-09-08 16:54:49 +00:00
Fix memory leaks in MDNS code
* src/rpc/virnetservermdns.c: Fix leaks
This commit is contained in:
parent
7e853d6c1a
commit
268cc6e9d1
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user