changeset 23082:0ae9c9befa63

Plug leak.
author Daniel Atallah <daniel.atallah@gmail.com>
date Wed, 21 May 2008 01:57:07 +0000
parents 9d331ad0a8dc
children 69796bbe7a6d
files libpurple/protocols/jabber/auth.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/auth.c	Wed May 21 01:49:03 2008 +0000
+++ b/libpurple/protocols/jabber/auth.c	Wed May 21 01:57:07 2008 +0000
@@ -503,8 +503,10 @@
 		 * support it and including it gives a false fall-back to other mechs offerred,
 		 * leading to incorrect error handling.
 		 */
-		if (mech_name && !strcmp(mech_name, "X-GOOGLE-TOKEN"))
+		if (mech_name && !strcmp(mech_name, "X-GOOGLE-TOKEN")) {
+			g_free(mech_name);
 			continue;
+		}
 
 		g_string_append(js->sasl_mechs, mech_name);
 		g_string_append_c(js->sasl_mechs, ' ');