Leak fix.

Thu, 08 Oct 2009 15:32:04 +0000

author
Sadrul Habib Chowdhury <sadrul@pidgin.im>
date
Thu, 08 Oct 2009 15:32:04 +0000
changeset 28636
1e66cc34da0e
parent 28635
d6a2e98fae47
child 28637
52dc3516d01b

Leak fix.

libpurple/protocols/msn/nexus.c file | annotate | diff | comparison | revisions
libpurple/protocols/msn/notification.c file | annotate | diff | comparison | revisions
--- a/libpurple/protocols/msn/nexus.c	Thu Oct 08 04:02:26 2009 +0000
+++ b/libpurple/protocols/msn/nexus.c	Thu Oct 08 15:32:04 2009 +0000
@@ -338,8 +338,10 @@
 			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);
 
--- a/libpurple/protocols/msn/notification.c	Thu Oct 08 04:02:26 2009 +0000
+++ b/libpurple/protocols/msn/notification.c	Thu Oct 08 15:32:04 2009 +0000
@@ -621,7 +621,7 @@
 				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",

mercurial