changeset 20537:c49b886231d5

fix a memleak or 2
author Ka-Hing Cheung <khc@hxbc.us>
date Wed, 03 Oct 2007 05:05:35 +0000
parents d52d299cfde3
children 90fd0826c6ce 29d8c86c14cd
files libpurple/protocols/msn/notification.c libpurple/protocols/msn/soap2.c
diffstat 2 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/notification.c	Wed Oct 03 04:18:36 2007 +0000
+++ b/libpurple/protocols/msn/notification.c	Wed Oct 03 05:05:35 2007 +0000
@@ -420,9 +420,6 @@
 	else
 	{
 		g_return_if_fail(cmd->payload_cb != NULL);
-
-		purple_debug_info("valgrind", "MSG len: %d [%c] [%c]\n", cmd->payload_len, cmd->payload[cmd->payload_len - 2], cmd->payload[cmd->payload_len - 1]);
-		purple_debug_info("MSNP14","MSG payload:{%s}\n",cmd->payload);
 		cmd->payload_cb(cmdproc, cmd, cmd->payload, cmd->payload_len);
 	}
 }
--- a/libpurple/protocols/msn/soap2.c	Wed Oct 03 04:18:36 2007 +0000
+++ b/libpurple/protocols/msn/soap2.c	Wed Oct 03 05:05:35 2007 +0000
@@ -360,6 +360,7 @@
 						conn->close_when_done = TRUE;
 					}
 				}
+				g_free(line);
 			}
 
 		loop_end:
@@ -493,6 +494,7 @@
 			msn_soap_write_cb(conn, conn->ssl->fd, PURPLE_INPUT_WRITE);
 
 			g_free(authstr);
+			g_free(body);
 		}		
 	}