diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-10-22 16:35:31 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-10-22 16:35:31 +0100 |
commit | 462ae9aba01f539d722b59471be8819a5a9eb3d1 (patch) | |
tree | 16bb896ea527f77d73d36372f374ead634c589dc /src | |
parent | 39330e41853cf3cf63be1c8dbb8d32ed6dd36328 (diff) | |
download | rspamd-462ae9aba01f539d722b59471be8819a5a9eb3d1.tar.gz rspamd-462ae9aba01f539d722b59471be8819a5a9eb3d1.zip |
Plug memory leak in html parser
Diffstat (limited to 'src')
-rw-r--r-- | src/libserver/html.c | 2 |
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) |