pidgin: 6b8c653b: Fix a potential leak, thanks to "KuSh". ...
datallah at pidgin.im
datallah at pidgin.im
Thu Nov 6 22:00:38 EST 2008
-----------------------------------------------------------------
Revision: 6b8c653bfd16896dc5b445bb8147d09a37e8db4c
Ancestor: 0d6ca2d4cfeb63a55ed7b9507d318afbfbc9ada8
Author: datallah at pidgin.im
Date: 2008-11-07T02:56:10
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/6b8c653bfd16896dc5b445bb8147d09a37e8db4c
Modified files:
libpurple/protocols/oscar/oscar.c
ChangeLog:
Fix a potential leak, thanks to "KuSh". Fixes #7463.
-------------- next part --------------
============================================================
--- libpurple/protocols/oscar/oscar.c 10d517e635cb867e7aa3b044d84372f7875a8bb4
+++ libpurple/protocols/oscar/oscar.c b85a13700ff626e2ccbc8e65173ed1666bc8977d
@@ -6091,10 +6091,11 @@ static void oscar_buddycb_edit_comment(P
gc = purple_account_get_connection(buddy->account);
od = gc->proto_data;
- data = g_new(struct name_data, 1);
-
if (!(g = purple_buddy_get_group(buddy)))
return;
+
+ data = g_new(struct name_data, 1);
+
comment = aim_ssi_getcomment(od->ssi.local, g->name, buddy->name);
comment_utf8 = comment ? oscar_utf8_try_convert(gc->account, comment) : NULL;
More information about the Commits
mailing list