1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Make cmd_account safer

This commit is contained in:
Michael Vetter 2019-10-10 18:06:28 +02:00
parent d3dd95963e
commit 87b66d0816

View File

@ -1013,8 +1013,12 @@ cmd_account(ProfWin *window, const char *const command, gchar **args)
}
ProfAccount *account = accounts_get_account(session_get_account_name());
if (account) {
cons_show_account(account);
account_free(account);
} else {
log_error("Could not get accounts");
}
return TRUE;
}