[Commits] [SCM] claws branch, gtk3, updated. 4.0.0-229-gd172fae34
wwp at claws-mail.org
wwp at claws-mail.org
Sun Sep 26 21:34:30 CEST 2021
The branch, gtk3 has been updated
via d172fae34524d34f1b31bc8c9bd4a3cad847f94c (commit)
from beffc75e4ec45b145586479eb3743632857456e8 (commit)
Summary of changes:
src/prefs_actions.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit d172fae34524d34f1b31bc8c9bd4a3cad847f94c
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 cef09218e..138374b77 100644
--- a/src/prefs_actions.c
+++ b/src/prefs_actions.c
@@ -1370,10 +1370,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