]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Pull request #5190: snort: tweak config dtor so that tuners are released before their...
authorRuss Combs (rucombs) <rucombs@cisco.com>
Thu, 5 Mar 2026 21:37:16 +0000 (21:37 +0000)
committerPriyanka Gurudev (prbg) <prbg@cisco.com>
Thu, 5 Mar 2026 21:37:16 +0000 (21:37 +0000)
Merge in SNORT/snort3 from ~RUCOMBS/snort3:tuner_fix to master

Squashed commit of the following:

commit 06e78a431c1559e9827ab61cf21449540672c4bd
Author: Russ Combs <rucombs@cisco.com>
Date:   Thu Mar 5 09:38:10 2026 -0500

    snort: tweak config dtor so that tuners are released before their inspector

src/main/snort_config.cc

index 0547e6a1b85daf6ea8104446f6500bd4e9b44eb4..90be74bb6d53ffedbdfa061f033eb0795d951e53 100644 (file)
@@ -286,6 +286,7 @@ SnortConfig::~SnortConfig()
     }
     delete fast_pattern_config;
 
+    clear_reload_resource_tuner_list();
     delete policy_map;
     policy_map = nullptr;
     ActionManager::delete_config(this);
@@ -312,7 +313,6 @@ SnortConfig::~SnortConfig()
     delete payload_injector_config;
     delete trace_config;
     delete overlay_trace_config;
-    clear_reload_resource_tuner_list();
 
     Profiler::clear(this);