Fix a leak of the string in each Direct IM message, reported by jas8522 in AdiumTicket:#6982

Fri, 18 May 2007 15:18:32 +0000

author
Evan Schoenberg <evands@pidgin.im>
date
Fri, 18 May 2007 15:18:32 +0000
changeset 17201
ea978e6a73bb
parent 17190
674026d9a55a
child 17202
32ab8bec7403
child 17214
273095d331c4
child 17216
1108e2dc5a4c
child 17219
15256be9cf8b

Fix a leak of the string in each Direct IM message, reported by jas8522 in AdiumTicket:#6982

libpurple/protocols/oscar/oscar.c file | annotate | diff | comparison | revisions
--- a/libpurple/protocols/oscar/oscar.c	Fri May 18 12:48:03 2007 +0000
+++ b/libpurple/protocols/oscar/oscar.c	Fri May 18 15:18:32 2007 +0000
@@ -4143,6 +4143,7 @@
 			conn->sn, msg->str, &tmp, &tmplen, &charset, &charsubset);
 	g_string_free(msg, TRUE);
 	msg = g_string_new_len(tmp, tmplen);
+	g_free(tmp);
 
 	/* Append any binary data that we may have */
 	if (oscar_id) {

mercurial