[Commits] [SCM] claws branch, gtk3, updated. 4.0.0-226-g5168c2ab5

wwp at claws-mail.org wwp at claws-mail.org
Sun Sep 26 21:09:25 CEST 2021


The branch, gtk3 has been updated
       via  5168c2ab52b68a7265cb85c46480cfa8a18a23e3 (commit)
      from  82bdd5b0b4419ed311f008b73b6ab456d8bcd607 (commit)

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


- Log -----------------------------------------------------------------
commit 5168c2ab52b68a7265cb85c46480cfa8a18a23e3
Author: wwp <subscript at free.fr>
Date:   Sun Sep 26 21:08:14 2021 +0200

    Fix CID 1491324: use after free.

diff --git a/src/prefs_filtering.c b/src/prefs_filtering.c
index 122b0730e..79f861e0a 100644
--- a/src/prefs_filtering.c
+++ b/src/prefs_filtering.c
@@ -777,12 +777,12 @@ static void delete_path(GSList ** p_filters, const gchar * path)
                                 suffix = action->destination + prefixlen;
                                 
                                 if (suffix && !strncmp(path, suffix, pathlen)) {
-                                        filteringprop_free(filtering);
                                         filters = g_slist_remove(filters, filtering);
+                                        filteringprop_free(filtering);
                                 }
                         } else if (strcmp(action->destination, path) == 0) {
-                                filteringprop_free(filtering);
                                 filters = g_slist_remove(filters, filtering);
+                                filteringprop_free(filtering);
                         }
                 }
         }                

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list