From: Victor Julien Date: Wed, 28 Oct 2015 19:52:00 +0000 (+0100) Subject: mpm: always cleanup factory X-Git-Tag: suricata-3.1RC1~309 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1dd135d512bb536287d92895cdd6cf33e2ecc573;p=thirdparty%2Fsuricata.git mpm: always cleanup factory --- diff --git a/src/detect-engine.c b/src/detect-engine.c index e9e9ecec5a..42a130cc4c 100644 --- a/src/detect-engine.c +++ b/src/detect-engine.c @@ -978,9 +978,7 @@ void DetectEngineCtxFree(DetectEngineCtx *de_ctx) SigGroupCleanup(de_ctx); - if (de_ctx->sgh_mpm_context == ENGINE_SGH_MPM_FACTORY_CONTEXT_SINGLE) { - MpmFactoryDeRegisterAllMpmCtxProfiles(de_ctx); - } + MpmFactoryDeRegisterAllMpmCtxProfiles(de_ctx); DetectEngineCtxFreeThreadKeywordData(de_ctx); SRepDestroy(de_ctx);