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-7.0.0-rc2~488 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F8635%2Fhead;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 --- diff --git a/src/detect-engine.c b/src/detect-engine.c index 485d691c11..6aef3d4efe 100644 --- a/src/detect-engine.c +++ b/src/detect-engine.c @@ -4606,6 +4606,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;