summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-11-23 14:34:58 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-11-25 12:35:06 +0000
commit9374c19e58b3743f96b6b13e88d1366660cee696 (patch)
treea6fdc777f0a1a02b799f7a990eb680c108b82372
parentb1a7978b2d29cbbe2ed9d2ebc3a3d30be090be6a (diff)
downloadrspamd-9374c19e58b3743f96b6b13e88d1366660cee696.tar.gz
rspamd-9374c19e58b3743f96b6b13e88d1366660cee696.zip
[Minor] Destroy ratelimit buckets
-rw-r--r--src/fuzzy_storage.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c
index 26f7da902..bc13b7049 100644
--- a/src/fuzzy_storage.c
+++ b/src/fuzzy_storage.c
@@ -2095,6 +2095,10 @@ start_fuzzy (struct rspamd_worker *worker)
rspamd_keypair_cache_destroy (ctx->keypair_cache);
}
+ if (ctx->ratelimit_buckets) {
+ rspamd_lru_hash_destroy (ctx->ratelimit_buckets);
+ }
+
REF_RELEASE (ctx->cfg);
rspamd_log_close (worker->srv->logger, TRUE);