im.pidgin.pidgin: 703c3f9437d5e71255819c747f9690d19c6ba6e3

datallah at pidgin.im datallah at pidgin.im
Mon Oct 8 11:42:42 EDT 2007


revision:            703c3f9437d5e71255819c747f9690d19c6ba6e3
date:                2007-10-08T15:34:58
author:              datallah at pidgin.im
branch:              im.pidgin.pidgin
changelog:
Fix leak when initializing msn soap request.

manifest:
format_version "1"

new_manifest [69086d5ecc1ce0e17600a99f467155588ad47f6e]

old_revision [0822c640f22b63d7bc8992e62b80bccd1eea12a2]

patch "libpurple/protocols/msn/soap.c"
 from [1fdfd8ef14b7f47f39a4c4f3df0ee68d74fe69d8]
   to [33b40542abf405a280d4b032f13aee7b01fc8cb7]
-------------- next part --------------
============================================================
--- libpurple/protocols/msn/soap.c	1fdfd8ef14b7f47f39a4c4f3df0ee68d74fe69d8
+++ libpurple/protocols/msn/soap.c	33b40542abf405a280d4b032f13aee7b01fc8cb7
@@ -131,6 +131,7 @@ msn_soap_init(MsnSoapConn *soapconn,char
 				MsnSoapSslErrorCbFunction error_cb)
 {
 	purple_debug_misc("MSN SOAP","Initializing SOAP connection\n");
+	g_free(soapconn->login_host);
 	soapconn->login_host = g_strdup(host);
 	soapconn->ssl_conn = ssl;
 	soapconn->connect_cb = connect_cb;
@@ -204,11 +205,9 @@ msn_soap_destroy(MsnSoapConn *soapconn)
 void
 msn_soap_destroy(MsnSoapConn *soapconn)
 {
-	if(soapconn->login_host)
-		g_free(soapconn->login_host);
+	g_free(soapconn->login_host);
 
-	if(soapconn->login_path)
-		g_free(soapconn->login_path);
+	g_free(soapconn->login_path);
 
 	/*remove the write handler*/
 	if (soapconn->output_handler > 0){


More information about the Commits mailing list