diff options
author | Michael Vetter <jubalh@iodoru.org> | 2021-03-17 16:18:56 +0100 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2021-03-17 16:18:56 +0100 |
commit | ebb1be9e58b195c142894715254cd10462c79066 (patch) | |
tree | e23513a96dac057d6058d38f9d10ad7cc881abc7 /src | |
parent | 5cec47c86a3b79951d3d1207bdd2d0cb95058058 (diff) | |
download | profani-tty-ebb1be9e58b195c142894715254cd10462c79066.tar.gz |
form.c: fix memleak in form_tag_exists
Diffstat (limited to 'src')
-rw-r--r-- | src/xmpp/form.c | 1 |
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); |