From e9ea3435fc57a19a197456d23e00353eebb618a0 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 29 Oct 2025 10:19:18 +0000 Subject: [PATCH] [Minor] Fix double free in fuzzy storage --- src/fuzzy_storage.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c index 0782dcb1e9..1f8cccef24 100644 --- a/src/fuzzy_storage.c +++ b/src/fuzzy_storage.c @@ -4459,13 +4459,7 @@ start_fuzzy(struct rspamd_worker *worker) g_free(cur); } - if (ctx->default_forbidden_ids) { - kh_destroy(fuzzy_key_ids_set, ctx->default_forbidden_ids); - } - - if (ctx->weak_ids) { - kh_destroy(fuzzy_key_ids_set, ctx->weak_ids); - } + /* default_forbidden_ids and weak_ids are freed by mempool destructor */ CFG_REF_RELEASE(ctx->cfg); CFG_REF_RELEASE(ctx->cfg); -- 2.47.3