]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
remove redundant rctx != NULL check
authorMark Andrews <marka@isc.org>
Thu, 2 Jul 2020 06:21:20 +0000 (16:21 +1000)
committerMark Andrews <marka@isc.org>
Sun, 5 Jul 2020 23:52:19 +0000 (23:52 +0000)
lib/dns/client.c

index a86a5da468ec7d864fc01428c962d56e9eed4e36..11ecd0530083bdc427223059eba5f041111b08a9 100644 (file)
@@ -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);