From aad403d87dc85266b9537eb744c93d90919b63f2 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Fri, 29 Dec 2023 10:59:43 +0100 Subject: [PATCH] mpm/hs: improve pointer hygene --- src/util-mpm-hs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util-mpm-hs.c b/src/util-mpm-hs.c index f1594434ff..5c24199184 100644 --- a/src/util-mpm-hs.c +++ b/src/util-mpm-hs.c @@ -873,6 +873,7 @@ void SCHSDestroyCtx(MpmCtx *mpm_ctx) SCMutexUnlock(&g_db_table_mutex); SCFree(mpm_ctx->ctx); + mpm_ctx->ctx = NULL; mpm_ctx->memory_cnt--; mpm_ctx->memory_size -= sizeof(SCHSCtx); }