Plug leak.

Wed, 21 May 2008 01:57:07 +0000

author
Daniel Atallah <datallah@pidgin.im>
date
Wed, 21 May 2008 01:57:07 +0000
changeset 23247
57957b699391
parent 23242
141db4dc5978
child 23248
30d72058bc49

Plug leak.

libpurple/protocols/jabber/auth.c file | annotate | diff | comparison | revisions
--- 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, ' ');

mercurial