From: Mark Andrews Date: Thu, 2 Jul 2020 06:21:20 +0000 (+1000) Subject: remove redundant rctx != NULL check X-Git-Tag: v9.17.4~70^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2fa2dbd5fb9a3e7bc3cf29eff6b198581942d7b8;p=thirdparty%2Fbind9.git remove redundant rctx != NULL check --- diff --git a/lib/dns/client.c b/lib/dns/client.c index a86a5da468e..11ecd053008 100644 --- a/lib/dns/client.c +++ b/lib/dns/client.c @@ -1407,10 +1407,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);