diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/libserver/symbols_cache.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libserver/symbols_cache.c b/src/libserver/symbols_cache.c index 5b532b979..0deacea3d 100644 --- a/src/libserver/symbols_cache.c +++ b/src/libserver/symbols_cache.c @@ -2026,6 +2026,9 @@ rspamd_symbols_cache_start_refresh (struct symbols_cache * cache, event_base_set (ev_base, &cbdata->resort_ev); double_to_tv (tm, &tv); event_add (&cbdata->resort_ev, &tv); + rspamd_mempool_add_destructor (cache->static_pool, + (rspamd_mempool_destruct_t)event_del, + &cbdata->resort_ev); } void |