]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#3731] Fix crash caused by destruction order in d2 tests
authorAndrei Pavel <andrei@isc.org>
Wed, 26 Feb 2025 09:04:57 +0000 (11:04 +0200)
committerAndrei Pavel <andrei@isc.org>
Fri, 28 Feb 2025 12:25:58 +0000 (14:25 +0200)
Co-authored by: Razvan Becheriu <razvan@isc.org>

src/bin/d2/tests/d2_process_unittests.cc

index b5a8e28b5265d8cc185d0bd63f527ef754453260..ffdf39281ffffbe321990262f9582650b14a6e78 100644 (file)
@@ -20,7 +20,6 @@
 #include <gtest/gtest.h>
 
 #include <functional>
-#include <sstream>
 
 using namespace std;
 using namespace isc;
@@ -74,6 +73,7 @@ public:
 
     /// @brief Destructor
     virtual ~D2ProcessTest() {
+        D2Controller::instance().reset();
     }
 
     /// @brief Callback that will invoke shutdown method.