pidgin: c7c882ce: Fix a potential leak that was introduced...
datallah at pidgin.im
datallah at pidgin.im
Fri Jul 18 17:16:05 EDT 2008
-----------------------------------------------------------------
Revision: c7c882ce933f14ae4b89d4c9782a84accaec53b5
Ancestor: 6de63684a43aa81e3f9325305b539e9a301eeb34
Author: datallah at pidgin.im
Date: 2008-07-18T21:10:23
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/c7c882ce933f14ae4b89d4c9782a84accaec53b5
Modified files:
libpurple/protocols/yahoo/yahoo_profile.c
ChangeLog:
Fix a potential leak that was introduced in revision 7a490c356e10f7fff3432f875897aa0ca0ad1ff0.
-------------- next part --------------
============================================================
--- libpurple/protocols/yahoo/yahoo_profile.c 5ebf0edfff19b02500eb5147fff5f8f5485380bc
+++ libpurple/protocols/yahoo/yahoo_profile.c f0d1f0c4a63c3f3b0c40beb445a5f9afaf017fa5
@@ -1282,6 +1282,10 @@ void yahoo_get_info(PurpleConnection *gc
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);
}
More information about the Commits
mailing list