# HG changeset patch # User Daniel Atallah # Date 1211335027 0 # Node ID 0ae9c9befa63221c8ce0fcbf4e17024fd996e2e7 # Parent 9d331ad0a8dce7c74c0928b830d32e246b667972 Plug leak. diff -r 9d331ad0a8dc -r 0ae9c9befa63 libpurple/protocols/jabber/auth.c --- 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, ' ');