[Commits] [SCM] claws branch, master, updated. 3.16.0-130-g6d71ef2

wwp at claws-mail.org wwp at claws-mail.org
Fri Apr 13 12:15:47 CEST 2018


The branch, master has been updated
       via  6d71ef27da1e739fad65e44c2b6c27d60b41a6e5 (commit)
      from  567a186d197384a5d6f7794b963d4a98f21933a1 (commit)

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


- Log -----------------------------------------------------------------
commit 6d71ef27da1e739fad65e44c2b6c27d60b41a6e5
Author: wwp <wwp at free.fr>
Date:   Fri Apr 13 12:15:24 2018 +0200

    Fix another leak in smime plugin (CID #1220437).

diff --git a/src/plugins/smime/smime.c b/src/plugins/smime/smime.c
index 823ba37..93268a3 100644
--- a/src/plugins/smime/smime.c
+++ b/src/plugins/smime/smime.c
@@ -313,9 +313,11 @@ static gint smime_check_signature(MimeInfo *mimeinfo)
 					}
 				}
 				g_node_prepend(parentinfo->node, decinfo->node);
+				g_free(textstr);
 				return 0;
 			} else {
-				g_free(textstr);
+				if (textstr)
+					g_free(textstr);
 				return -1;
 			}
 		}

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list