+2020. [bug] rdataset_setadditional() could leak memory. [RT #16034]
+
2019. [tuning] Reduce the amount of work performed per quantum
when cleaning the cache. [RT #15986]
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: rbtdb.c,v 1.196.18.34 2006/05/02 12:55:31 shane Exp $ */
+/* $Id: rbtdb.c,v 1.196.18.35 2006/05/16 04:11:39 marka Exp $ */
/*! \file */
return (ISC_R_SUCCESS);
fail:
- if (newentry != NULL) {
- if (newcbarg != NULL)
+ if (newcbarg != NULL) {
+ if (newentry != NULL) {
acache_cancelentry(rbtdb->common.mctx, newentry,
&newcbarg);
- dns_acache_detachentry(&newentry);
+ dns_acache_detachentry(&newentry);
+ }
+ 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);