[Commits] [SCM] claws branch, master, updated. 3.18.0-171-ga616aa880

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


The branch, master has been updated
       via  a616aa88081de8b120be286a888b09ce415fdf8c (commit)
      from  7ff8e070e8ff18454cc316353ba793858361a064 (commit)

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


- Log -----------------------------------------------------------------
commit a616aa88081de8b120be286a888b09ce415fdf8c
Author: wwp <subscript at free.fr>
Date:   Sun Sep 26 21:33:47 2021 +0200

    Fix CID 1491147 and 1491153: null ptr dereference, resource leak.

diff --git a/src/prefs_actions.c b/src/prefs_actions.c
index 4b70f68f0..71483a13d 100644
--- a/src/prefs_actions.c
+++ b/src/prefs_actions.c
@@ -1381,10 +1381,12 @@ void prefs_actions_rename_path(const gchar *old_path, const gchar *new_path)
 		if (action_list &&
 		    filtering_action_list_rename_path(action_list,
 						old_path, new_path)) {
+			gchar *str = filteringaction_list_to_string(action_list);
 			g_free(action->data);
 			action->data = g_strconcat(tokens[0], "{",
-				filteringaction_list_to_string(action_list),
-				"}", NULL);
+				str ? str : "", "}", NULL);
+			if (str)
+				g_free(str);
 		}
 
 		g_strfreev(tokens);

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list