[Commits] [SCM] claws branch, master, updated. 3.16.0-255-g668f7cb
ticho at claws-mail.org
ticho at claws-mail.org
Fri Aug 3 14:07:18 CEST 2018
The branch, master has been updated
via 668f7cb605d31a753986a017050a13edf160d488 (commit)
from b9c4e27fafe412c076fb600680b4374a2e140405 (commit)
Summary of changes:
src/html.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
- Log -----------------------------------------------------------------
commit 668f7cb605d31a753986a017050a13edf160d488
Author: Andrej Kacian <ticho at claws-mail.org>
Date: Fri Aug 3 14:07:10 2018 +0200
Fix a memory leak in sc_html_parse_tag().
diff --git a/src/html.c b/src/html.c
index ca8fd4c..da8625e 100644
--- a/src/html.c
+++ b/src/html.c
@@ -353,7 +353,10 @@ static SC_HTMLState sc_html_parse_tag(SC_HTMLParser *parser)
parser->state = SC_HTML_BR;
} else if (!strcmp(tag->name, "a")) {
GList *cur;
- parser->href = NULL;
+ if (parser->href != NULL) {
+ g_free(parser->href);
+ parser->href = NULL;
+ }
for (cur = tag->attr; cur != NULL; cur = cur->next) {
if (cur->data && !strcmp(((SC_HTMLAttr *)cur->data)->name, "href")) {
g_free(parser->href);
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list