pidgin: db155742: Fix a small memleak when adding a Jabber...

markdoliner at pidgin.im markdoliner at pidgin.im
Mon May 5 01:00:54 EDT 2008


-----------------------------------------------------------------
Revision: db15574205f27c2eecbe6cd3d05dd004cf75050f
Ancestor: d064c09988301df44e3a5dd007d88a97374904d1
Author: markdoliner at pidgin.im
Date: 2008-05-05T04:54:37
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/db15574205f27c2eecbe6cd3d05dd004cf75050f

Modified files:
        libpurple/protocols/jabber/roster.c

ChangeLog: 

Fix a small memleak when adding a Jabber buddy

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/roster.c	193709e4db9351f19545578b1f06c9e4cafb71f6
+++ libpurple/protocols/jabber/roster.c	bd15d29a173775903e6619b8bc23311c18f1212c
@@ -342,6 +342,7 @@ void jabber_roster_add_buddy(PurpleConne
 	}
 
 	jabber_roster_update(js, who, groups);
+	g_slist_free(groups);
 
 	my_bare_jid = g_strdup_printf("%s@%s", js->user->node, js->user->domain);
 	if(!strcmp(who, my_bare_jid)) {


More information about the Commits mailing list