]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
locks weren't being destroyed
authorBrian Wellington <source@isc.org>
Tue, 26 Sep 2000 22:09:20 +0000 (22:09 +0000)
committerBrian Wellington <source@isc.org>
Tue, 26 Sep 2000 22:09:20 +0000 (22:09 +0000)
bin/named/client.c
lib/dns/dispatch.c

index a35b0289b03f83b0473eed2e89e9b44d7feb0d3e..83b69a1b1d9d0c6f9220866ea3a33355386d1441 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: client.c,v 1.115 2000/09/22 00:13:03 gson Exp $ */
+/* $Id: client.c,v 1.116 2000/09/26 22:09:18 bwelling Exp $ */
 
 #include <config.h>
 
@@ -1595,6 +1595,7 @@ clientmgr_destroy(ns_clientmgr_t *manager) {
 
        MTRACE("clientmgr_destroy");
 
+       DESTROYLOCK(&manager->lock);
        manager->magic = 0;
        isc_mem_put(manager->mctx, manager, sizeof *manager);
 }
index a09ed189a630fcfafa878dfe629516f8f2eed733..a92f562fc73acc2623e37d293cc7ce0e6cca8326 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: dispatch.c,v 1.70 2000/09/19 06:59:28 marka Exp $ */
+/* $Id: dispatch.c,v 1.71 2000/09/26 22:09:20 bwelling Exp $ */
 
 #include <config.h>
 
@@ -1451,6 +1451,7 @@ dispatch_free(dns_dispatch_t **dispp)
        if (disp->qid != NULL)
                qid_destroy(mgr->mctx, &disp->qid);
        disp->mgr = NULL;
+       DESTROYLOCK(&disp->lock);
        disp->magic = 0;
        isc_mempool_put(mgr->dpool, disp);
 }