about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2020-02-25 16:31:41 +0100
committerMichael Vetter <jubalh@iodoru.org>2020-02-25 16:31:41 +0100
commit063b5243f17331c4c578c687fc18bcec4f203507 (patch)
tree2182c4e97de774ff13d1ab81665405f164250695 /src
parentfc35a5a4921142f1425fc697c1e26b04b700dbf6 (diff)
downloadprofani-tty-063b5243f17331c4c578c687fc18bcec4f203507.tar.gz
Free jid in muc_members_add()
Fix memleak.
Diffstat (limited to 'src')
-rw-r--r--src/xmpp/muc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/xmpp/muc.c b/src/xmpp/muc.c
index d0dd6fac..1cc48b31 100644
--- a/src/xmpp/muc.c
+++ b/src/xmpp/muc.c
@@ -889,6 +889,7 @@ muc_members_add(const char *const room, const char *const jid)
             if (strcmp(jid, our_jid->barejid) != 0) {
                 omemo_start_session(jid);
             }
+            jid_destroy(our_jid);
 #endif
         }
     }