Wed, 21 May 2008 01:57:07 +0000
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, ' ');