about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2021-03-17 16:18:56 +0100
committerMichael Vetter <jubalh@iodoru.org>2021-03-17 16:18:56 +0100
commitebb1be9e58b195c142894715254cd10462c79066 (patch)
treee23513a96dac057d6058d38f9d10ad7cc881abc7 /src
parent5cec47c86a3b79951d3d1207bdd2d0cb95058058 (diff)
downloadprofani-tty-ebb1be9e58b195c142894715254cd10462c79066.tar.gz
form.c: fix memleak in form_tag_exists
Diffstat (limited to 'src')
-rw-r--r--src/xmpp/form.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/xmpp/form.c b/src/xmpp/form.c
index a1fa31d4..dc8c583c 100644
--- a/src/xmpp/form.c
+++ b/src/xmpp/form.c
@@ -447,6 +447,7 @@ form_tag_exists(DataForm* form, const char* const tag)
     GList* curr = tags;
     while (curr) {
         if (g_strcmp0(curr->data, tag) == 0) {
+            g_list_free(tags);
             return TRUE;
         }
         curr = g_list_next(curr);