1
1
mirror of https://github.com/profanity-im/profanity.git synced 2025-02-02 15:08:15 -05:00

Fixed memory leak in _cmd_connect

issue #226
This commit is contained in:
James Booth 2013-09-22 23:24:54 +01:00
parent e3e1341c9a
commit 9ea85475fe

View File

@ -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);