From d313b5d60598e143e6e97eca8ac35d6a01ec6014 Mon Sep 17 00:00:00 2001 From: Philippe Antoine Date: Fri, 10 Mar 2023 11:28:26 +0100 Subject: [PATCH] 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 --- src/detect-engine.c | 2 ++ 1 file changed, 2 insertions(+) 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;