about summary refs log tree commit diff stats
path: root/src/command/commands.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-06-26 23:55:57 +0100
committerJames Booth <boothj5@gmail.com>2014-06-26 23:55:57 +0100
commitc98ce4299de670dd5d270308bf7137ea05d9c763 (patch)
tree2ae9aaeddb6d7e63d2ce892a03cfcdd85b9bf253 /src/command/commands.c
parent8cf7122e7a10352161450f3ca80b1b6e4738d7c1 (diff)
downloadprofani-tty-c98ce4299de670dd5d270308bf7137ea05d9c763.tar.gz
Free resources on OTR shutdown
Diffstat (limited to 'src/command/commands.c')
-rw-r--r--src/command/commands.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/command/commands.c b/src/command/commands.c
index f979da41..3e7dffd9 100644
--- a/src/command/commands.c
+++ b/src/command/commands.c
@@ -2766,6 +2766,7 @@ cmd_otr(gchar **args, struct cmd_help_t help)
     if (strcmp(args[0], "gen") == 0) {
         ProfAccount *account = accounts_get_account(jabber_get_account_name());
         otr_keygen(account);
+        account_free(account);
         return TRUE;
 
     } else if (strcmp(args[0], "myfp") == 0) {