From: Victor Julien Date: Fri, 5 May 2023 15:01:51 +0000 (+0200) Subject: runmode/unix-socket: don't lead http range memory X-Git-Tag: suricata-7.0.0-rc2~269 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F8817%2Fhead;p=thirdparty%2Fsuricata.git 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. --- 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