]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[5272] Trivial work-around for clang/boost bug
authorFrancis Dupont <fdupont@isc.org>
Fri, 4 Aug 2017 11:03:17 +0000 (13:03 +0200)
committerFrancis Dupont <fdupont@isc.org>
Fri, 4 Aug 2017 11:03:17 +0000 (13:03 +0200)
src/hooks/dhcp/lease_cmds/tests/lease_cmds_unittest.cc

index b5b019a0f5ea583f43152e8a05d7f1c53fd9d28a..a57ec3011a4b48342f6e89d6376e660e6bdc40bb 100644 (file)
@@ -226,8 +226,10 @@ public:
     ///
     /// Removes library (if any), destroys lease manager (if any).
     virtual ~LeaseCmdsTest() {
-        unloadLibs();
+        // destroys lease manager first because the other order triggers
+        // a clang/boost bug
         LeaseMgrFactory::destroy();
+        unloadLibs();
         lmptr_ = 0;
     }