From 9ea85475fe2d7d4e34ef11c45772ef2da33db49c Mon Sep 17 00:00:00 2001 From: James Booth Date: Sun, 22 Sep 2013 23:24:54 +0100 Subject: Fixed memory leak in _cmd_connect issue #226 --- src/command/command.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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); -- cgit 1.4.1-2-gfad0