Mercurial > pidgin.yaz
comparison libpurple/protocols/bonjour/mdns_win32.c @ 21019:f119cd1cb47c
Fix a leak of the dns query results.
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Fri, 26 Oct 2007 05:10:16 +0000 |
parents | 8b74b226e023 |
children | 5b9da9db7e81 |
comparison
equal
deleted
inserted
replaced
21018:aed039f5360b | 21019:f119cd1cb47c |
---|---|
145 bonjour_buddy_delete(bb); | 145 bonjour_buddy_delete(bb); |
146 | 146 |
147 } | 147 } |
148 | 148 |
149 /* free the hosts list*/ | 149 /* free the hosts list*/ |
150 g_slist_free(hosts); | 150 while (hosts != NULL) { |
151 hosts = g_slist_remove(hosts, hosts->data); | |
152 g_free(hosts->data); | |
153 hosts = g_slist_remove(hosts, hosts->data); | |
154 } | |
151 | 155 |
152 /* free the remaining args memory */ | 156 /* free the remaining args memory */ |
153 g_free(args->full_service_name); | 157 g_free(args->full_service_name); |
154 g_free(args); | 158 g_free(args); |
155 } | 159 } |