im.pidgin.pidgin: d275feb891040092b840d7cc48797e0a16e8a757

datallah at pidgin.im datallah at pidgin.im
Fri Oct 26 01:15:46 EDT 2007


-----------------------------------------------------------------
Revision: d275feb891040092b840d7cc48797e0a16e8a757
Ancestor: 22ecd7ea1376fa3c0d66294bbd70904410837ede
Author: datallah at pidgin.im
Date: 2007-10-26T05:10:16
Branch: im.pidgin.pidgin

Modified files:
        libpurple/protocols/bonjour/mdns_win32.c

ChangeLog: 

Fix a leak of the dns query results.

-------------- next part --------------
============================================================
--- libpurple/protocols/bonjour/mdns_win32.c	0dde61385eccccabb364f15a0f51fa7b69a4537d
+++ libpurple/protocols/bonjour/mdns_win32.c	544621f7ceac5ef9451d047f2b5855649412dbe0
@@ -147,7 +147,11 @@ _mdns_resolve_host_callback(GSList *host
 	}
 
 	/* free the hosts list*/
-	g_slist_free(hosts);
+	while (hosts != NULL) {
+		hosts = g_slist_remove(hosts, hosts->data);
+		g_free(hosts->data);
+		hosts = g_slist_remove(hosts, hosts->data);
+	}
 
 	/* free the remaining args memory */
 	g_free(args->full_service_name);


More information about the Commits mailing list