[Commits] [SCM] claws branch, master, updated. 3.15.0-115-ga800245
ticho at claws-mail.org
ticho at claws-mail.org
Sun Jul 16 19:27:13 CEST 2017
The branch, master has been updated
via a800245115984003e38a33aadd1a2e10d7f25b7c (commit)
from 2e90cf549d7ecee6b35814a7701363954f6787c1 (commit)
Summary of changes:
src/procheader.c | 5 ++++-
src/procmsg.c | 3 ++-
2 files changed, 6 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit a800245115984003e38a33aadd1a2e10d7f25b7c
Author: Andrej Kacian <ticho at claws-mail.org>
Date: Sun Jul 16 19:22:23 2017 +0200
Fixed two memory leaks around procheader_get_one_field().
diff --git a/src/procheader.c b/src/procheader.c
index 3277740..6d5132d 100644
--- a/src/procheader.c
+++ b/src/procheader.c
@@ -574,8 +574,11 @@ static MsgInfo *parse_stream(void *data, gboolean isstring, MsgFlags flags,
if ((!strncmp(buf, "X-Claws-End-Special-Headers: 1",
strlen("X-Claws-End-Special-Headers:"))) ||
(!strncmp(buf, "X-Sylpheed-End-Special-Headers: 1",
- strlen("X-Sylpheed-End-Special-Headers:"))))
+ strlen("X-Sylpheed-End-Special-Headers:")))) {
+ g_free(buf);
+ buf = NULL;
break;
+ }
/* from other mailers */
if (!strncmp(buf, "Date: ", 6)
|| !strncmp(buf, "To: ", 4)
diff --git a/src/procmsg.c b/src/procmsg.c
index c9b077e..3137f5f 100644
--- a/src/procmsg.c
+++ b/src/procmsg.c
@@ -1604,10 +1604,11 @@ static gint procmsg_send_message_queue_full(const gchar *file, gboolean keep_ses
case Q_CLAWS_HDRS:
case Q_CLAWS_HDRS_OLD:
/* end of special headers reached */
+ g_free(buf);
goto send_mail; /* can't "break;break;" */
}
+ g_free(buf);
}
- g_free(buf);
send_mail:
filepos = ftell(fp);
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list