From 2634e6b3f8929e001d830950e268474b87db7b1a Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Fri, 5 May 2023 17:01:51 +0200 Subject: [PATCH] runmode/unix-socket: don't lead http range memory Init was per run, Deinit global, so Init overwrote memory if multiple pcaps were processed. Bug: #6046. --- src/suricata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/suricata.c b/src/suricata.c index ea5652f65c..0cad2631ec 100644 --- a/src/suricata.c +++ b/src/suricata.c @@ -367,7 +367,6 @@ static void GlobalsDestroy(SCInstance *suri) AppLayerDeSetup(); DatasetsSave(); DatasetsDestroy(); - HttpRangeContainersDestroy(); TagDestroyCtx(); LiveDeviceListClean(); @@ -2301,6 +2300,7 @@ void PostRunDeinit(const int runmode, struct timeval *start_time) HostCleanup(); StreamTcpFreeConfig(STREAM_VERBOSE); DefragDestroy(); + HttpRangeContainersDestroy(); TmqResetQueues(); #ifdef PROFILING -- 2.47.2