2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 22:45:39 +00:00

Add isc_refcount_destroy() as appropriate

This commit is contained in:
Ondřej Surý
2019-07-23 08:27:30 -04:00
parent 4643ee04bd
commit fbf9856f43
13 changed files with 29 additions and 21 deletions

View File

@@ -480,6 +480,8 @@ destroynode(dns_sdlznode_t *node) {
dns_db_t *db;
isc_mem_t *mctx;
isc_refcount_destroy(&node->references);
sdlz = node->sdlz;
mctx = sdlz->common.mctx;
@@ -504,7 +506,6 @@ destroynode(dns_sdlznode_t *node) {
dns_name_free(node->name, mctx);
isc_mem_put(mctx, node->name, sizeof(dns_name_t));
}
isc_refcount_destroy(&node->references);
node->magic = 0;
isc_mem_put(mctx, node, sizeof(dns_sdlznode_t));