changeset 21162:deebe08df2e9

Leak fix.
author Daniel Atallah <daniel.atallah@gmail.com>
date Wed, 07 Nov 2007 15:02:09 +0000
parents e119edfc0fb0
children 50970c85709a
files libpurple/protocols/msn/nexus.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/nexus.c	Wed Nov 07 14:07:52 2007 +0000
+++ b/libpurple/protocols/msn/nexus.c	Wed Nov 07 15:02:09 2007 +0000
@@ -194,7 +194,7 @@
 		);
 
 	/*build the SOAP windows Live ID XML body */
-	tail = g_strdup_printf(TWN_ENVELOP_TEMPLATE,username,password,challenge_str	);
+	tail = g_strdup_printf(TWN_ENVELOP_TEMPLATE, username, password, challenge_str);
 	g_free(challenge_str);
 #else
 	rst1_str = g_strdup_printf(
@@ -214,6 +214,7 @@
 	g_free(fs);
 
 	soap = msn_soap_message_new(NULL, xmlnode_from_str(tail, -1));
+	g_free(tail);
 	msn_soap_message_send(nexus->session, soap, MSN_TWN_SERVER, TWN_POST_URL,
 		nexus_got_response_cb, nexus);
 }