talons

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

commit 82bdd5b0b4419ed311f008b73b6ab456d8bcd607
parent 63db37ff1d65e6b294819c50c1487f7fd880da2c
Author: wwp <subscript@free.fr>
Date:   Sun, 26 Sep 2021 21:05:51 +0200

Fix CID 1491102: use after free.

Diffstat:
Msrc/prefs_display_header.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/prefs_display_header.c b/src/prefs_display_header.c @@ -435,9 +435,9 @@ void prefs_display_header_read_config(void) /* remove all previous headers list */ while (prefs_common.disphdr_list != NULL) { dp = (DisplayHeaderProp *)prefs_common.disphdr_list->data; - display_header_prop_free(dp); prefs_common.disphdr_list = g_slist_remove(prefs_common.disphdr_list, dp); + display_header_prop_free(dp); } while (claws_fgets(buf, sizeof(buf), fp) != NULL) {