Merge branch '1991-cleanup-redundant-non-null-check-v9_16' into 'v9_16'

remove redundant rctx != NULL check

See merge request isc-projects/bind9!3805
This commit is contained in:
Mark Andrews
2020-07-06 01:22:01 +00:00

View File

@@ -1416,10 +1416,8 @@ cleanup:
if (sigrdataset != NULL) {
putrdataset(client->mctx, &sigrdataset);
}
if (rctx != NULL) {
isc_mutex_destroy(&rctx->lock);
isc_mem_put(mctx, rctx, sizeof(*rctx));
}
isc_mutex_destroy(&rctx->lock);
isc_mem_put(mctx, rctx, sizeof(*rctx));
isc_event_free(ISC_EVENT_PTR(&event));
isc_task_detach(&tclone);
dns_view_detach(&view);