Don't bump reference count when putting a zone in a zonelist.
This commit is contained in:
@@ -192,7 +192,7 @@ dns_c_zonelist_addzone(isc_log_t *lctx, dns_c_zonelist_t *zlist,
|
||||
return (ISC_R_NOMEMORY);
|
||||
}
|
||||
|
||||
dns_c_zone_attach(lctx, zone, &zoneelem->thezone);
|
||||
zoneelem->thezone = zone;
|
||||
ISC_LINK_INIT(zoneelem, next);
|
||||
|
||||
ISC_LIST_APPEND(zlist->zones, zoneelem, next);
|
||||
|
||||
Reference in New Issue
Block a user