Commit c6ee5082 authored by Tatuya JINMEI 神明達哉's avatar Tatuya JINMEI 神明達哉
Browse files

2046. [bug] rbtdb.c:rdataset_setadditional() could cause duplicate

			cleanup.
parent 3d5430b7
2046. [bug] rbtdb.c:rdataset_setadditional() could cause duplicate
cleanup.
2045. [func] use lock buckets for acache entries to limit memory 2045. [func] use lock buckets for acache entries to limit memory
consumption. [RT #16183] consumption. [RT #16183]
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE. * PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: rbtdb.c,v 1.235 2006/06/13 04:49:18 marka Exp $ */ /* $Id: rbtdb.c,v 1.236 2006/07/06 06:36:51 jinmei Exp $ */
/*! \file */ /*! \file */
...@@ -6629,10 +6629,12 @@ rdataset_setadditional(dns_rdataset_t *rdataset, dns_rdatasetadditional_t type, ...@@ -6629,10 +6629,12 @@ rdataset_setadditional(dns_rdataset_t *rdataset, dns_rdatasetadditional_t type,
acache_cancelentry(rbtdb->common.mctx, newentry, acache_cancelentry(rbtdb->common.mctx, newentry,
&newcbarg); &newcbarg);
dns_acache_detachentry(&newentry); dns_acache_detachentry(&newentry);
} else {
dns_db_detachnode((dns_db_t *)rbtdb, &newcbarg->node);
dns_db_detach(&newcbarg->db);
isc_mem_put(rbtdb->common.mctx, newcbarg,
sizeof(*newcbarg));
} }
dns_db_detachnode((dns_db_t *)rbtdb, &newcbarg->node);
dns_db_detach(&newcbarg->db);
isc_mem_put(rbtdb->common.mctx, newcbarg, sizeof(*newcbarg));
} }
return (result); return (result);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment