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); }