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:
parent
5cec47c86a
commit
ebb1be9e58
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user