Fix a potential leak that was introduced in revision eece7b44f5830513a6d0ccbc206147c76e756442.

Fri, 18 Jul 2008 21:10:23 +0000

author
Daniel Atallah <datallah@pidgin.im>
date
Fri, 18 Jul 2008 21:10:23 +0000
changeset 23882
6356813321da
parent 23881
80b36fe2f5ce
child 23883
222e2f637efd
child 26100
44a9666a695d

Fix a potential leak that was introduced in revision eece7b44f5830513a6d0ccbc206147c76e756442.

libpurple/protocols/yahoo/yahoo_profile.c file | annotate | diff | comparison | revisions
--- a/libpurple/protocols/yahoo/yahoo_profile.c	Fri Jul 18 07:05:26 2008 +0000
+++ b/libpurple/protocols/yahoo/yahoo_profile.c	Fri Jul 18 21:10:23 2008 +0000
@@ -1282,6 +1282,10 @@
 	url_data = purple_util_fetch_url(url, TRUE, NULL, FALSE, yahoo_got_info, data);
 	if (url_data != NULL)
 		yd->url_datas = g_slist_prepend(yd->url_datas, url_data);
+	else {
+		g_free(data->name);
+		g_free(data);
+	}
 
 	g_free(url);
 }

mercurial