]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
locks weren't being destroyed.
authorBrian Wellington <source@isc.org>
Mon, 25 Sep 2000 17:46:39 +0000 (17:46 +0000)
committerBrian Wellington <source@isc.org>
Mon, 25 Sep 2000 17:46:39 +0000 (17:46 +0000)
lib/dns/tsig.c
lib/dns/view.c

index a23372a1ac3a097874d549147253697a363e4071..b19704895a50dfdb3ddf92beb32678438a2fd037 100644 (file)
@@ -16,7 +16,7 @@
  */
 
 /*
- * $Id: tsig.c,v 1.90 2000/09/21 21:29:16 bwelling Exp $
+ * $Id: tsig.c,v 1.91 2000/09/25 17:46:38 bwelling Exp $
  * Principal Author: Brian Wellington
  */
 
@@ -275,6 +275,7 @@ tsigkey_free(dns_tsigkey_t *key) {
                dns_name_free(key->creator, key->mctx);
                isc_mem_put(key->mctx, key->creator, sizeof(dns_name_t));
        }
+       DESTROYLOCK(&key->lock);
        isc_mem_put(key->mctx, key, sizeof(dns_tsigkey_t));
 }
 
index f8a2c46ea63f3c2fabe27f6eacc3c4f3a461cc6b..14597a1ff62dc84cbf9103451aa2e9c99aa62cad 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: view.c,v 1.79 2000/09/05 03:35:18 marka Exp $ */
+/* $Id: view.c,v 1.80 2000/09/25 17:46:39 bwelling Exp $ */
 
 #include <config.h>
 
@@ -250,6 +250,7 @@ destroy(dns_view_t *view) {
        dns_keytable_detach(&view->trustedkeys);
        dns_keytable_detach(&view->secroots);
        dns_fwdtable_destroy(&view->fwdtable);
+       isc_rwlock_destroy(&view->conflock);
        DESTROYLOCK(&view->lock);
        isc_mem_free(view->mctx, view->name);
        isc_mem_put(view->mctx, view, sizeof *view);