about summary refs log tree commit diff stats
path: root/src/xmpp
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-08-09 00:40:37 +0100
committerJames Booth <boothj5@gmail.com>2015-08-09 00:40:37 +0100
commit783342a48ce3a3db398d4aa4a0b032bddd0a9262 (patch)
tree8d2fdc8fc735c5054f86cd67aee7ae8fa7d3429c /src/xmpp
parentd944e8252ef8bd2e93edc7bb8ab8218c6bf28570 (diff)
downloadprofani-tty-783342a48ce3a3db398d4aa4a0b032bddd0a9262.tar.gz
Free timestamps and carbons stanzas
Diffstat (limited to 'src/xmpp')
-rw-r--r--src/xmpp/stanza.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xmpp/stanza.c b/src/xmpp/stanza.c
index bb32932a..acee97fb 100644
--- a/src/xmpp/stanza.c
+++ b/src/xmpp/stanza.c
@@ -213,6 +213,7 @@ stanza_enable_carbons(xmpp_ctx_t *ctx){
     xmpp_stanza_set_ns(carbons_enable, STANZA_NS_CARBONS);
 
     xmpp_stanza_add_child(iq, carbons_enable);
+    xmpp_stanza_release(carbons_enable);
 
     return iq;
 }
@@ -232,6 +233,7 @@ stanza_disable_carbons(xmpp_ctx_t *ctx){
     xmpp_stanza_set_ns(carbons_disable, STANZA_NS_CARBONS);
 
     xmpp_stanza_add_child(iq, carbons_disable);
+    xmpp_stanza_release(carbons_disable);
 
     return iq;
 }