From: Vsevolod Stakhov Date: Wed, 29 Oct 2025 10:19:18 +0000 (+0000) Subject: [Minor] Fix double free in fuzzy storage X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e9ea3435fc57a19a197456d23e00353eebb618a0;p=thirdparty%2Frspamd.git [Minor] Fix double free in fuzzy storage --- 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);