1
0
mirror of https://github.com/profanity-im/profanity.git synced 2025-01-03 14:57:42 -05:00

form.c: fix memleak in form_tag_exists

This commit is contained in:
Michael Vetter 2021-03-17 16:18:56 +01:00
parent 5cec47c86a
commit ebb1be9e58

View File

@ -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);