Avoid an indefinite loop freeing the same data over and over again

in host_name_lookup_cleanup() when HAVE_C_ARES.

svn path=/trunk/; revision=25989
This commit is contained in:
Stig Bjørlykke 2008-08-12 16:47:54 +00:00
parent 6bea15f3cb
commit a7e6165f15
1 changed files with 1 additions and 0 deletions

View File

@ -2336,6 +2336,7 @@ host_name_lookup_cleanup(void) {
cur = g_list_first(c_ares_queue_head);
while (cur) {
g_free(cur->data);
cur = g_list_next (cur);
}
g_list_free(c_ares_queue_head);