pidgin: 74bb0c51: Leak fix.
sadrul at pidgin.im
sadrul at pidgin.im
Thu Oct 8 20:07:41 EDT 2009
-----------------------------------------------------------------
Revision: 74bb0c515027bed84d59449a2f448786868d4c4b
Ancestor: bdbdc21f3f0cb3522913ed2daf5a79e5908e3db2
Author: sadrul at pidgin.im
Date: 2009-10-08T15:32:04
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/74bb0c515027bed84d59449a2f448786868d4c4b
Modified files:
libpurple/protocols/msn/nexus.c
libpurple/protocols/msn/notification.c
ChangeLog:
Leak fix.
-------------- next part --------------
============================================================
--- libpurple/protocols/msn/nexus.c db32d8eb05eec3ac77c0aeadb282fa7dc1c1ca3f
+++ libpurple/protocols/msn/nexus.c 32a3c519cf96f3cd4399e763caa02b7bd3e47767
@@ -338,8 +338,10 @@ nexus_parse_collection(MsnNexus *nexus,
xmlnode *cipher = xmlnode_get_child(node, "RequestedSecurityToken/EncryptedData/CipherData/CipherValue");
xmlnode *secret = xmlnode_get_child(node, "RequestedProofToken/BinarySecret");
+ g_free(nexus->cipher);
nexus->cipher = xmlnode_get_data(cipher);
data = xmlnode_get_data(secret);
+ g_free(nexus->secret);
nexus->secret = (char *)purple_base64_decode(data, NULL);
g_free(data);
============================================================
--- libpurple/protocols/msn/notification.c 614ac44d430e991c1e045560c396a2ce5608bc3f
+++ libpurple/protocols/msn/notification.c 6c6434bad656c2c8c94c6f6e60202f8bc476614d
@@ -621,7 +621,7 @@ update_contact_network(MsnSession *sessi
user->list_op & MSN_LIST_OP_MASK, network);
payload = xmlnode_to_str(adl_node, &payload_len);
msn_notification_post_adl(session->notification->cmdproc, payload, payload_len);
-
+ g_free(payload);
} else {
purple_debug_error("msn",
"Got FQY update for unknown user %s on network %d.\n",
More information about the Commits
mailing list