[Commits] [SCM] claws branch, gtk3, updated. 4.0.0-225-g82bdd5b0b

wwp at claws-mail.org wwp at claws-mail.org
Sun Sep 26 21:06:20 CEST 2021


The branch, gtk3 has been updated
       via  82bdd5b0b4419ed311f008b73b6ab456d8bcd607 (commit)
      from  63db37ff1d65e6b294819c50c1487f7fd880da2c (commit)

Summary of changes:
 src/prefs_display_header.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit 82bdd5b0b4419ed311f008b73b6ab456d8bcd607
Author: wwp <subscript at free.fr>
Date:   Sun Sep 26 21:05:51 2021 +0200

    Fix CID 1491102: use after free.

diff --git a/src/prefs_display_header.c b/src/prefs_display_header.c
index e2e168f2d..207112b60 100644
--- 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) {

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list