talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit f49e40123be352e3c6b230faf99c02785c5969e7
parent 45bb7c40cc009d2c13244660ef21855dac48ca51
Author: wwp <subscript@free.fr>
Date:   Sun, 26 Sep 2021 16:55:45 +0200

Fix CID 1491264: use after free.

Diffstat:
Msrc/toolbar.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/toolbar.c b/src/toolbar.c @@ -2858,8 +2858,8 @@ do { \ while (entry_list != NULL) { Entry *e = (Entry*) entry_list->data; - g_free(e); entry_list = g_slist_remove(entry_list, e); + g_free(e); } /* match any bit flags */ @@ -2880,8 +2880,8 @@ do { \ while (entry_list != NULL) { Entry *e = (Entry*) entry_list->data; - g_free(e); entry_list = g_slist_remove(entry_list, e); + g_free(e); } g_slist_free(entry_list);