[Commits] [SCM] claws branch, master, updated. 3.18.0-168-gdd81ff3c8

wwp at claws-mail.org wwp at claws-mail.org
Sun Sep 26 21:08:30 CEST 2021


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

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


- Log -----------------------------------------------------------------
commit dd81ff3c8150617dd58a6fd3207c1be86c9077c5
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 d1104e976..05a693c66 100644
--- a/src/prefs_filtering.c
+++ b/src/prefs_filtering.c
@@ -796,12 +796,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