[Commits] [SCM] claws branch, master, updated. 3.18.0-167-gc2b04d014

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


The branch, master has been updated
       via  c2b04d014ef54aecbdcafe92d35ca624683d1f31 (commit)
      from  e1d431c550f6540a888e156a23db97b7450858ca (commit)

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


- Log -----------------------------------------------------------------
commit c2b04d014ef54aecbdcafe92d35ca624683d1f31
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 f179d0ddc..3bf9aac9f 100644
--- a/src/prefs_display_header.c
+++ b/src/prefs_display_header.c
@@ -436,9 +436,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