From: Vsevolod Stakhov Date: Thu, 22 Oct 2015 15:35:31 +0000 (+0100) Subject: Plug memory leak in html parser X-Git-Tag: 1.0.7~26 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=462ae9aba01f539d722b59471be8819a5a9eb3d1;p=rspamd.git Plug memory leak in html parser --- 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)