]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Destroy the mutex
authorMark Andrews <marka@isc.org>
Thu, 20 Aug 2020 00:37:59 +0000 (10:37 +1000)
committerMark Andrews <marka@isc.org>
Wed, 2 Sep 2020 03:07:03 +0000 (03:07 +0000)
lib/dns/tests/dispatch_test.c

index 91628f8f57776886aa058bf4aa2d92f9b47e1414..e01cb924c4490c48acfeb3cd5f595119a4560cdf 100644 (file)
@@ -340,6 +340,12 @@ dispatch_getnext(void **state) {
         */
        dns_dispatch_detach(&dispatch);
        dns_dispatchmgr_destroy(&dispatchmgr);
+
+       /*
+        * Destroy the mutex.
+        */
+       result = isc_mutex_destroy(&lock);
+       assert_int_equal(result, ISC_R_SUCCESS);
 }
 
 int