about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2019-07-12 10:51:53 +0200
committerMichael Vetter <jubalh@iodoru.org>2019-07-12 10:57:07 +0200
commit68b6deefbf9f931d7713631b85faac4f2c402356 (patch)
treeb825c784b0b61a722adce4606d7b5df64f6d7b80
parent04988ab4ba6bcf723131d58ac60f3d9621dfe047 (diff)
downloadprofani-tty-68b6deefbf9f931d7713631b85faac4f2c402356.tar.gz
Fix segfault in iq_{submit,cancel}_command_config
Taken care of by the destructor.
-rw-r--r--src/xmpp/iq.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/xmpp/iq.c b/src/xmpp/iq.c
index 63e28f89..95b3c67e 100644
--- a/src/xmpp/iq.c
+++ b/src/xmpp/iq.c
@@ -765,9 +765,6 @@ iq_submit_command_config(ProfConfWin *confwin)
 
     iq_send_stanza(iq);
     xmpp_stanza_release(iq);
-    free(data->sessionid);
-    free(data->command);
-    free(data);
 }
 
 void
@@ -778,9 +775,6 @@ iq_cancel_command_config(ProfConfWin *confwin)
     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