about summary refs log tree commit diff stats
path: root/src/command
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-08-20 22:02:58 +0100
committerJames Booth <boothj5@gmail.com>2015-08-20 22:02:58 +0100
commitc18b7f4d67a4b5e2cd026b47f9d51dae74427c1d (patch)
tree13f02a03c10d69f2eb65aee6e921c60f6c7d43fe /src/command
parent3000916ad9aed6b22025de17d5377695280dc8dd (diff)
downloadprofani-tty-c18b7f4d67a4b5e2cd026b47f9d51dae74427c1d.tar.gz
Free id for OTR messages
Diffstat (limited to 'src/command')
-rw-r--r--src/command/commands.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/command/commands.c b/src/command/commands.c
index 5e7146fc..7167e26d 100644
--- a/src/command/commands.c
+++ b/src/command/commands.c
@@ -4530,7 +4530,8 @@ cmd_otr(ProfWin *window, const char * const command, gchar **args)
 
             if (!otr_is_secure(barejid)) {
                 char *otr_query_message = otr_start_query();
-                message_send_chat_otr(barejid, otr_query_message);
+                char *id = message_send_chat_otr(barejid, otr_query_message);
+                free(id);
                 return TRUE;
             }
 
@@ -4562,7 +4563,8 @@ cmd_otr(ProfWin *window, const char * const command, gchar **args)
             }
 
             char *otr_query_message = otr_start_query();
-            message_send_chat_otr(chatwin->barejid, otr_query_message);
+            char *id = message_send_chat_otr(chatwin->barejid, otr_query_message);
+            free(id);
             return TRUE;
         }