about summary refs log tree commit diff stats
path: root/src/command
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-12-15 22:00:42 +0000
committerJames Booth <boothj5@gmail.com>2013-12-15 22:00:42 +0000
commit6d75ebb8e9ebd292a57adb54ff22cac52b463dbd (patch)
tree6af661bebbaf122b568484039aa8b11099f4c358 /src/command
parent5ec2d3cf7cf6fa6e0930c308376fc088ff4fdec2 (diff)
downloadprofani-tty-6d75ebb8e9ebd292a57adb54ff22cac52b463dbd.tar.gz
Test account free'd after connect
Diffstat (limited to 'src/command')
-rw-r--r--src/command/commands.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command/commands.c b/src/command/commands.c
index 910c57d5..c48dc1a1 100644
--- a/src/command/commands.c
+++ b/src/command/commands.c
@@ -78,6 +78,7 @@ cmd_connect(gchar **args, struct cmd_help_t help)
             }
             cons_show("Connecting with account %s as %s", account->name, jid);
             conn_status = jabber_connect_with_account(account);
+            accounts_free_account(account);
         } else {
             char *passwd = ui_ask_password();
             jid = strdup(lower);
@@ -92,7 +93,6 @@ cmd_connect(gchar **args, struct cmd_help_t help)
             log_debug("Connection attempt for %s failed", jid);
         }
 
-        accounts_free_account(account);
         free(jid);
 
         result = TRUE;