From: Victor Julien Date: Sat, 4 Aug 2018 08:10:58 +0000 (+0200) Subject: detect: free rule group init memory at the end of startup X-Git-Tag: suricata-4.1.0-rc2~162 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22f987509655c2667a853c3719b1b66fe3a8a454;p=thirdparty%2Fsuricata.git detect: free rule group init memory at the end of startup --- diff --git a/src/detect-engine-build.c b/src/detect-engine-build.c index 81755e2567..98004b9128 100644 --- a/src/detect-engine-build.c +++ b/src/detect-engine-build.c @@ -1793,6 +1793,9 @@ int SigAddressPrepareStage4(DetectEngineCtx *de_ctx) SigGroupHeadBuildNonPrefilterArray(de_ctx, sgh); + SigGroupHeadInitDataFree(sgh->init); + sgh->init = NULL; + sgh->id = idx; cnt++; }