From de91a99178c1a26d9c1355fe1b3a8ec60788ecf6 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Fri, 29 May 2020 11:28:58 +0200 Subject: Fix memleak in autocomplete_remove_older_than_max* --- src/tools/autocomplete.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/tools/autocomplete.c b/src/tools/autocomplete.c index ca5fe772..2f8cde3e 100644 --- a/src/tools/autocomplete.c +++ b/src/tools/autocomplete.c @@ -407,6 +407,7 @@ autocomplete_remove_older_than_max_reverse(Autocomplete ac, int maxsize) if (autocomplete_length(ac) > maxsize) { GList *last = g_list_last(ac->items); if (last) { + free(last->data); ac->items = g_list_delete_link(ac->items, last); } } -- cgit 1.4.1-2-gfad0