comparison libpurple/protocols/jabber/auth.c @ 23080:0ae9c9befa63

Plug leak.
author Daniel Atallah <daniel.atallah@gmail.com>
date Wed, 21 May 2008 01:57:07 +0000
parents 9d331ad0a8dc
children c77d66886425
comparison
equal deleted inserted replaced
23075:9d331ad0a8dc 23080:0ae9c9befa63
501 #ifdef HAVE_CYRUS_SASL 501 #ifdef HAVE_CYRUS_SASL
502 /* Don't include Google Talk's X-GOOGLE-TOKEN mechanism, as we will not 502 /* Don't include Google Talk's X-GOOGLE-TOKEN mechanism, as we will not
503 * support it and including it gives a false fall-back to other mechs offerred, 503 * support it and including it gives a false fall-back to other mechs offerred,
504 * leading to incorrect error handling. 504 * leading to incorrect error handling.
505 */ 505 */
506 if (mech_name && !strcmp(mech_name, "X-GOOGLE-TOKEN")) 506 if (mech_name && !strcmp(mech_name, "X-GOOGLE-TOKEN")) {
507 g_free(mech_name);
507 continue; 508 continue;
509 }
508 510
509 g_string_append(js->sasl_mechs, mech_name); 511 g_string_append(js->sasl_mechs, mech_name);
510 g_string_append_c(js->sasl_mechs, ' '); 512 g_string_append_c(js->sasl_mechs, ' ');
511 #else 513 #else
512 if(mech_name && !strcmp(mech_name, "DIGEST-MD5")) 514 if(mech_name && !strcmp(mech_name, "DIGEST-MD5"))