[Commits] [SCM] claws branch, master, updated. 3.16.0-117-gcccb29c

wwp at claws-mail.org wwp at claws-mail.org
Wed Apr 11 09:40:32 CEST 2018


The branch, master has been updated
       via  cccb29c3b0745ab9f5449b30e8285852d242e578 (commit)
      from  279130e447ae285eba4d1dfdcf0b13094cb0662c (commit)

Summary of changes:
 src/plugins/smime/smime.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit cccb29c3b0745ab9f5449b30e8285852d242e578
Author: wwp <wwp at free.fr>
Date:   Wed Apr 11 09:40:05 2018 +0200

    Fix a leak, CID #1220437.

diff --git a/src/plugins/smime/smime.c b/src/plugins/smime/smime.c
index 7e3af5e..823ba37 100644
--- a/src/plugins/smime/smime.c
+++ b/src/plugins/smime/smime.c
@@ -290,8 +290,10 @@ static gint smime_check_signature(MimeInfo *mimeinfo)
 				decinfo = g_node_first_child(newinfo->node) != NULL ?
 					g_node_first_child(newinfo->node)->data : NULL;
 
-				if (decinfo == NULL)
+				if (decinfo == NULL) {
+					g_free(textstr);
 					return -1;
+				}
 
 				g_node_unlink(decinfo->node);
 				procmime_mimeinfo_free_all(&newinfo);

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list