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
pull/8635/head
Philippe Antoine 2 years ago committed by Victor Julien
parent 473ca6dcf4
commit d313b5d605

@ -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;

Loading…
Cancel
Save