From: Victor Julien Date: Fri, 29 Dec 2023 09:59:43 +0000 (+0100) Subject: mpm/hs: improve pointer hygene X-Git-Tag: suricata-8.0.0-beta1~1859 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aad403d87dc85266b9537eb744c93d90919b63f2;p=thirdparty%2Fsuricata.git mpm/hs: improve pointer hygene --- 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); }