diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-09-21 18:46:48 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-09-21 18:46:48 +0400 |
commit | f11a1c737f7e1d524d8b8bc056a531ab0f669d8e (patch) | |
tree | dabc7393b9bfa3749c267542f21dcbec250602fa /src/plugins | |
parent | 08a5507e764cbdfd0ee1f80a864d906d12071a35 (diff) | |
download | rspamd-f11a1c737f7e1d524d8b8bc056a531ab0f669d8e.tar.gz rspamd-f11a1c737f7e1d524d8b8bc056a531ab0f669d8e.zip |
* Add time out for sync IO as it can cause unpredictable errors
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/regexp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/regexp.c b/src/plugins/regexp.c index dcbdce7b6..d8d9f3ea8 100644 --- a/src/plugins/regexp.c +++ b/src/plugins/regexp.c @@ -312,10 +312,10 @@ process_regexp (struct rspamd_regexp *re, struct worker_task *task) return 0; } else { + memory_pool_add_destructor (task->task_pool, (pool_destruct_func)g_list_free, headerlist); if (re->regexp == NULL) { msg_debug ("process_regexp: regexp contains only header and it is found %s", re->header); task_cache_add (task, re, 1); - g_list_free (headerlist); return 1; } cur = headerlist; @@ -327,7 +327,6 @@ process_regexp (struct rspamd_regexp *re, struct worker_task *task) } cur = g_list_next (cur); } - g_list_free (headerlist); task_cache_add (task, re, 0); return 0; } |