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-17 23:34:52 +0100
committerJames Booth <boothj5@gmail.com>2014-06-17 23:34:52 +0100
commit79ddf1048486d1a77a1aee9b8152c8ffb25d8a11 (patch)
treeae96e2efee1116f006b2c77137e87efabd73f0c3 /src/command/commands.c
parentad68bcfde2d606906242f265a661ea3690e145bd (diff)
downloadprofani-tty-79ddf1048486d1a77a1aee9b8152c8ffb25d8a11.tar.gz
Fixed memleaks with otr policy and autoaway options
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 cf9dec11..aae32cb6 100644
--- a/src/command/commands.c
+++ b/src/command/commands.c
@@ -1033,6 +1033,7 @@ cmd_msg(gchar **args, struct cmd_help_t help)
                     message_send(msg, usr_jid);
                 }
                 ui_outgoing_msg("me", usr_jid, msg);
+                free(policy);
 
                 if (((win_type == WIN_CHAT) || (win_type == WIN_CONSOLE)) && prefs_get_boolean(PREF_CHLOG)) {
                     const char *jid = jabber_get_fulljid();