diff libgaim/protocols/qq/char_conv.c @ 14656:d1a76ccb93c4

[gaim-migrate @ 17402] leak-be-gone committer: Tailor Script <tailor@pidgin.im>
author Mark Huetsch <markhuetsch>
date Sat, 30 Sep 2006 00:14:00 +0000
parents a8140cbe08ce
children c039c920e11c
line wrap: on
line diff
--- a/libgaim/protocols/qq/char_conv.c	Fri Sep 29 20:49:33 2006 +0000
+++ b/libgaim/protocols/qq/char_conv.c	Sat Sep 30 00:14:00 2006 +0000
@@ -112,10 +112,10 @@
 	if (error == NULL)
 		return ret;	/* conversion is OK */
 	else {			/* conversion error */
+		gchar *failed = hex_dump_to_str((guint8 *) str, (len == -1) ? strlen(str) : len);
 		gaim_debug(GAIM_DEBUG_ERROR, "QQ", "%s\n", error->message);
-		gaim_debug(GAIM_DEBUG_WARNING, "QQ",
-			   "Dump failed text\n%s", 
-			   hex_dump_to_str((guint8 *) str, (len == -1) ? strlen(str) : len));
+		gaim_debug(GAIM_DEBUG_WARNING, "QQ", "Dump failed text\n%s", failed);
+		g_free(failed);
 		g_error_free(error);
 		return g_strdup(QQ_NULL_MSG);
 	}