diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-09-30 15:20:23 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-09-30 15:23:49 +0100 |
commit | f3cc2419301c00043bf8ade379792160d9a93a92 (patch) | |
tree | 2a4a36c4c16625118c39e9fb1f626d3f0f0a4c52 /src/libserver/url.c | |
parent | 1b62013a8c6dc0603c38ff6f6820ae2c35bbf0f0 (diff) | |
download | rspamd-f3cc2419301c00043bf8ade379792160d9a93a92.tar.gz rspamd-f3cc2419301c00043bf8ade379792160d9a93a92.zip |
[CritFix] Plug memory leak and potential memory corruption
Diffstat (limited to 'src/libserver/url.c')
-rw-r--r-- | src/libserver/url.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/libserver/url.c b/src/libserver/url.c index 7231934fd..81908c41a 100644 --- a/src/libserver/url.c +++ b/src/libserver/url.c @@ -2387,13 +2387,6 @@ rspamd_url_text_extract (rspamd_mempool_t *pool, rspamd_url_find_multiple (task->task_pool, part->stripped_content->data, part->stripped_content->len, is_html, part->newlines, rspamd_url_text_part_callback, &mcbd); - - /* Handle offsets of this part */ - if (part->exceptions != NULL) { - part->exceptions = g_list_reverse (part->exceptions); - rspamd_mempool_add_destructor (task->task_pool, - (rspamd_mempool_destruct_t) g_list_free, part->exceptions); - } } void |