From: Philippe Antoine Date: Fri, 10 Mar 2023 10:28:26 +0000 (+0100) Subject: detect: bump detect engine version for tenant reload X-Git-Tag: suricata-6.0.11~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c64261f374d23a612d1f0ddf973a8c04172d6ae8;p=thirdparty%2Fsuricata.git detect: bump detect engine version for tenant reload Because the engine version is used to free the old variables and not the new ones. As is done in DetectEngineReload. Ticket: #5866 (cherry picked from commit d313b5d60598e143e6e97eca8ac35d6a01ec6014) --- diff --git a/src/detect-engine.c b/src/detect-engine.c index c89586cbf7..3bb3c3307c 100644 --- a/src/detect-engine.c +++ b/src/detect-engine.c @@ -4264,6 +4264,8 @@ int DetectEngineMTApply(void) /* walk free list, freeing the old_de_ctx */ DetectEnginePruneFreeList(); + // needed for VarNameStoreFree + DetectEngineBumpVersion(); SCLogDebug("old_de_ctx should have been freed"); return 0;