# HG changeset patch # User Sadrul Habib Chowdhury # Date 1255015924 0 # Node ID caef0d8dcb04da0bbf5c9d2087bee15ff943ef6a # Parent 24702a4affaa97d77e7a93fee0273c0957b33959 Leak fix. diff -r 24702a4affaa -r caef0d8dcb04 libpurple/protocols/msn/nexus.c --- 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); diff -r 24702a4affaa -r caef0d8dcb04 libpurple/protocols/msn/notification.c --- 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",