[Commits] [SCM] claws branch, gtk3, updated. 4.0.0-187-g73557a0db
wwp at claws-mail.org
wwp at claws-mail.org
Tue Sep 14 13:58:05 CEST 2021
The branch, gtk3 has been updated
via 73557a0db41ef99a726881a1af8b516404a5bc2a (commit)
from be99a003e1bce0232a303811b38169a2e90b56fc (commit)
Summary of changes:
src/action.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit 73557a0db41ef99a726881a1af8b516404a5bc2a
Author: wwp <subscript at free.fr>
Date: Tue Sep 14 13:57:43 2021 +0200
Fix CID 1491213: resource leak.
diff --git a/src/action.c b/src/action.c
index 9feb3fb61..6f8de57eb 100644
--- a/src/action.c
+++ b/src/action.c
@@ -959,9 +959,12 @@ static ChildInfo *fork_child(gchar *cmd, const gchar *msg_str,
ret_str = g_locale_from_utf8(cmd, strlen(cmd),
&by_read, &by_written,
NULL);
- if (!ret_str || !by_written)
+ if (!ret_str || !by_written) {
+ if (ret_str)
+ g_free(ret_str);
ret_str = g_strdup(cmd);
-
+ }
+
trim_cmd = ret_str;
while (g_ascii_isspace(trim_cmd[0]))
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list