]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Destroy ratelimit buckets
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 23 Nov 2019 14:34:58 +0000 (14:34 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 25 Nov 2019 12:35:06 +0000 (12:35 +0000)
src/fuzzy_storage.c

index 26f7da90294a0961935bda989e84a4150f68dcd4..bc13b7049b85162ae7334d738e1b3b1a80997151 100644 (file)
@@ -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);