[Commits] [SCM] claws branch, master, updated. 3.15.0-116-g4b44092
ticho at claws-mail.org
ticho at claws-mail.org
Sun Jul 16 19:31:52 CEST 2017
The branch, master has been updated
via 4b44092934607b489f34000e3906f503ab41d65d (commit)
from a800245115984003e38a33aadd1a2e10d7f25b7c (commit)
Summary of changes:
src/plugins/pgpmime/pgpmime.c | 2 ++
1 file changed, 2 insertions(+)
- Log -----------------------------------------------------------------
commit 4b44092934607b489f34000e3906f503ab41d65d
Author: Andrej Kacian <ticho at claws-mail.org>
Date: Sun Jul 16 19:31:25 2017 +0200
Pgpmime: fix two memory leak in MIME boundary handling.
diff --git a/src/plugins/pgpmime/pgpmime.c b/src/plugins/pgpmime/pgpmime.c
index e14ebe0..8dc761d 100644
--- a/src/plugins/pgpmime/pgpmime.c
+++ b/src/plugins/pgpmime/pgpmime.c
@@ -501,6 +501,7 @@ gboolean pgpmime_sign(MimeInfo *mimeinfo, PrefsAccount *account, const gchar *fr
/* read temporary file into memory */
textstr = get_canonical_content(fp, boundary);
+ g_free(boundary);
fclose(fp);
gpgme_data_new_from_mem(&gpgtext, textstr, (size_t)strlen(textstr), 0);
@@ -700,6 +701,7 @@ gboolean pgpmime_encrypt(MimeInfo *mimeinfo, const gchar *encrypt_data)
/* read temporary file into memory */
textstr = get_canonical_content(fp, boundary);
+ g_free(boundary);
fclose(fp);
/* encrypt data */
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list