changeset 23566:0fd0c52364a2

Fix a potential leak that was introduced in revision 7a490c356e10f7fff3432f875897aa0ca0ad1ff0.
author Daniel Atallah <daniel.atallah@gmail.com>
date Fri, 18 Jul 2008 21:10:23 +0000
parents 6083c36f68d6
children a9db0aec7e59 7ff380f97abc
files libpurple/protocols/yahoo/yahoo_profile.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);
 }