aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-25 18:44:17 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-25 18:44:17 +0000
commitf5c39f1f346415a4c1e58836822995d7f245557d (patch)
tree031377e080ace4faedd82202cc3aedae9ad7d65e
parentecae6a32e6beed83e5cd91b2d391667cb839f6fe (diff)
downloadrspamd-f5c39f1f346415a4c1e58836822995d7f245557d.tar.gz
rspamd-f5c39f1f346415a4c1e58836822995d7f245557d.zip
Cleanup event
-rw-r--r--src/libserver/symbols_cache.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libserver/symbols_cache.c b/src/libserver/symbols_cache.c
index c7bddc219..71dc6787e 100644
--- a/src/libserver/symbols_cache.c
+++ b/src/libserver/symbols_cache.c
@@ -1282,6 +1282,8 @@ rspamd_symbols_cache_process_symbols (struct rspamd_task * task,
event_base_set (task->ev_base, ev);
msec_to_tv (50, &tv);
event_add (ev, &tv);
+ rspamd_mempool_add_destructor (task->task_pool,
+ (rspamd_mempool_destruct_t)event_del, ev);
}
msg_info_task ("trying to check async events after spending "