about summary refs log tree commit diff stats
path: root/src/config
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-09-22 23:16:54 +0100
committerJames Booth <boothj5@gmail.com>2013-09-23 00:08:50 +0100
commite3e1341c9a1d175251975447c05d0872e644ecc3 (patch)
treeba7b26da59919f1978c41889462fc2881a5d0bc3 /src/config
parent927af868c7381d3a0012436d1acb41a22d6bbb94 (diff)
downloadprofani-tty-e3e1341c9a1d175251975447c05d0872e644ecc3.tar.gz
Fixed memory leak in accounts_get_account
issue #226
Diffstat (limited to 'src/config')
-rw-r--r--src/config/accounts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config/accounts.c b/src/config/accounts.c
index b903d6be..7b9c6a6c 100644
--- a/src/config/accounts.c
+++ b/src/config/accounts.c
@@ -259,7 +259,7 @@ accounts_get_account(const char * const name)
             account->muc_nick = strdup(jidp->localpart);
             jid_destroy(jidp);
         } else {
-            account->muc_nick = strdup(muc_nick);
+            account->muc_nick = muc_nick;
         }
 
         // get room history