[Commits] [SCM] claws branch, gtk3, updated. 4.0.0-215-gf49e40123

wwp at claws-mail.org wwp at claws-mail.org
Sun Sep 26 16:56:27 CEST 2021


The branch, gtk3 has been updated
       via  f49e40123be352e3c6b230faf99c02785c5969e7 (commit)
      from  45bb7c40cc009d2c13244660ef21855dac48ca51 (commit)

Summary of changes:
 src/toolbar.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


- Log -----------------------------------------------------------------
commit f49e40123be352e3c6b230faf99c02785c5969e7
Author: wwp <subscript at free.fr>
Date:   Sun Sep 26 16:55:45 2021 +0200

    Fix CID 1491264: use after free.

diff --git a/src/toolbar.c b/src/toolbar.c
index 9bf11381b..f941dc1f7 100644
--- 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);

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list