]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
pullup:
authorAndreas Gustafsson <source@isc.org>
Mon, 25 Sep 2000 20:20:26 +0000 (20:20 +0000)
committerAndreas Gustafsson <source@isc.org>
Mon, 25 Sep 2000 20:20:26 +0000 (20:20 +0000)
 488.   [bug]           Locks weren't properly destroyed in some cases.

lib/dns/tsig.c
lib/dns/view.c

index 1ef9808e9d369d5666c45da521e53d6e0fc14e3f..b15bfd606bb742948462f1bc91225154f893f81c 100644 (file)
@@ -16,7 +16,7 @@
  */
 
 /*
- * $Id: tsig.c,v 1.72.2.8 2000/08/01 15:06:22 gson Exp $
+ * $Id: tsig.c,v 1.72.2.9 2000/09/25 20:20:25 gson Exp $
  * Principal Author: Brian Wellington
  */
 
@@ -209,6 +209,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 2b09756fc9a2c9a550b72eeb638fa7dddab385dc..15f69e3101a22f590d2631ca58a119bca6711cb6 100644 (file)
@@ -15,7 +15,7 @@
  * SOFTWARE.
  */
 
-/* $Id: view.c,v 1.71 2000/06/22 21:54:56 tale Exp $ */
+/* $Id: view.c,v 1.71.2.1 2000/09/25 20:20:26 gson Exp $ */
 
 #include <config.h>
 
@@ -231,6 +231,7 @@ destroy(dns_view_t *view) {
                dns_acl_detach(&view->recursionacl);
        dns_keytable_detach(&view->trustedkeys);
        dns_keytable_detach(&view->secroots);
+       isc_rwlock_destroy(&view->conflock);
        isc_mutex_destroy(&view->lock);
        isc_mem_free(view->mctx, view->name);
        isc_mem_put(view->mctx, view, sizeof *view);