about summary refs log tree commit diff stats
path: root/src/xmpp/iq.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xmpp/iq.c')
-rw-r--r--src/xmpp/iq.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/xmpp/iq.c b/src/xmpp/iq.c
index 4b75436a..93ab8553 100644
--- a/src/xmpp/iq.c
+++ b/src/xmpp/iq.c
@@ -765,15 +765,22 @@ iq_submit_command_config(ProfConfWin *confwin)
 
     iq_send_stanza(iq);
     xmpp_stanza_release(iq);
+    free(data->sessionid);
+    free(data->command);
+    free(data);
 }
 
 void
 iq_cancel_command_config(ProfConfWin *confwin)
 {
     xmpp_ctx_t * const ctx = connection_get_ctx();
+    CommandConfigData *data = (CommandConfigData *)confwin->userdata;
     xmpp_stanza_t *iq = stanza_create_room_config_cancel_iq(ctx, confwin->roomjid);
     iq_send_stanza(iq);
     xmpp_stanza_release(iq);
+    free(data->sessionid);
+    free(data->command);
+    free(data);
 }
 
 static void
136 137 138 139