]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
forgot destroing the acache entry lock in destroy_entry(), causing memory
authorTatuya JINMEI 神明達哉 <jinmei@isc.org>
Thu, 3 Feb 2005 02:52:53 +0000 (02:52 +0000)
committerTatuya JINMEI 神明達哉 <jinmei@isc.org>
Thu, 3 Feb 2005 02:52:53 +0000 (02:52 +0000)
leak. [RT #13533]
(I won't update the CHANGES list, since it's an "internal" report, and this
code has never been available publically)

lib/dns/acache.c

index 79d211383363226c8dc81082e60476f00bed9486..1d2f6a0a06c61239de4db8bf27088ef278156d8d 100644 (file)
@@ -14,7 +14,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: acache.c,v 1.6 2004/12/29 22:42:57 marka Exp $ */
+/* $Id: acache.c,v 1.7 2005/02/03 02:52:53 jinmei Exp $ */
 
 #include <config.h>
 
@@ -352,6 +352,8 @@ destroy_entry(dns_acacheentry_t *entry) {
         */
        clear_entry(acache, entry);
 
+       DESTROYLOCK(&entry->lock);
+
        isc_mem_put(acache->mctx, entry, sizeof(*entry));
 
        dns_acache_detach(&acache);