From e7159aca3030085f0bc6263fbf8586b56c1a512b Mon Sep 17 00:00:00 2001 From: James Booth Date: Sun, 22 Sep 2013 23:30:00 +0100 Subject: [PATCH] Fixed memory leak in accounts_get_account issue #226 --- src/config/accounts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/accounts.c b/src/config/accounts.c index 7b9c6a6c..4eb4b8e3 100644 --- a/src/config/accounts.c +++ b/src/config/accounts.c @@ -250,7 +250,7 @@ accounts_get_account(const char * const name) g_string_free(g_muc_service, TRUE); jid_destroy(jidp); } else { - account->muc_service = strdup(muc_service); + account->muc_service = muc_service; } gchar *muc_nick = g_key_file_get_string(accounts, name, "muc.nick", NULL);