aboutsummaryrefslogtreecommitdiffstats
path: root/mail/session.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/session.c')
-rw-r--r--mail/session.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mail/session.c b/mail/session.c
index 161536022e..b76e096abb 100644
--- a/mail/session.c
+++ b/mail/session.c
@@ -66,14 +66,14 @@ static char *
auth_callback (CamelAuthCallbackMode mode, char *data, gboolean secret,
CamelService *service, char *item, CamelException *ex)
{
- char *key, *ans;
+ char *key, *ans, *url;
if (!passwords)
passwords = g_hash_table_new (g_str_hash, g_str_equal);
- key = g_strdup_printf ("%s:%s",
- camel_url_to_string (service->url, FALSE),
- item);
+ url = camel_url_to_string (service->url, FALSE);
+ key = g_strdup_printf ("%s:%s", url, item);
+ g_free (url);
if (mode == CAMEL_AUTHENTICATOR_TELL) {
if (!data) {