about summary refs log tree commit diff stats
path: root/src/command/command.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-09-22 23:24:54 +0100
committerJames Booth <boothj5@gmail.com>2013-09-23 00:09:05 +0100
commit9ea85475fe2d7d4e34ef11c45772ef2da33db49c (patch)
treef29839fbb9ff81b50d8e95ed8f1e1e60032673ee /src/command/command.c
parente3e1341c9a1d175251975447c05d0872e644ecc3 (diff)
downloadprofani-tty-9ea85475fe2d7d4e34ef11c45772ef2da33db49c.tar.gz
Fixed memory leak in _cmd_connect
issue #226
Diffstat (limited to 'src/command/command.c')
-rw-r--r--src/command/command.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/command/command.c b/src/command/command.c
index 711f94e9..9ece5964 100644
--- a/src/command/command.c
+++ b/src/command/command.c
@@ -1368,6 +1368,7 @@ _cmd_connect(gchar **args, struct cmd_help_t help)
             cons_show("Connecting as %s", jid);
             conn_status = jabber_connect_with_details(jid, passwd, altdomain);
         }
+        g_free(lower);
 
         if (conn_status == JABBER_DISCONNECTED) {
             cons_show_error("Connection attempt for %s failed.", jid);