aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-10-22 16:35:31 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-10-22 16:35:31 +0100
commit462ae9aba01f539d722b59471be8819a5a9eb3d1 (patch)
tree16bb896ea527f77d73d36372f374ead634c589dc
parent39330e41853cf3cf63be1c8dbb8d32ed6dd36328 (diff)
downloadrspamd-462ae9aba01f539d722b59471be8819a5a9eb3d1.tar.gz
rspamd-462ae9aba01f539d722b59471be8819a5a9eb3d1.zip
Plug memory leak in html parser
-rw-r--r--src/libserver/html.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/html.c b/src/libserver/html.c
index 46e7cfbaa..248e57bf5 100644
--- a/src/libserver/html.c
+++ b/src/libserver/html.c
@@ -961,7 +961,7 @@ rspamd_html_process_tag (rspamd_mempool_t *pool, struct html_content *hc,
comp->type = (comp_type); \
comp->start = NULL; \
comp->len = 0; \
- tag->params = g_list_prepend (tag->params, comp); \
+ tag->params = g_list_append (tag->params, comp); \
ret = TRUE; \
} while(0)