]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
remove unused label
authorMark Andrews <marka@isc.org>
Mon, 3 Feb 2020 05:45:15 +0000 (16:45 +1100)
committerMark Andrews <marka@isc.org>
Mon, 3 Feb 2020 05:45:15 +0000 (16:45 +1100)
lib/dns/client.c

index 4782bd261a7ac6938f4b2c4af9aef978d77b61bb..227db4758a5f5150c1de6722ffab17b944f78747 100644 (file)
@@ -1775,14 +1775,11 @@ dns_client_startrequest(dns_client_t *client, dns_message_t *qmessage,
 
        isc_refcount_decrement(&client->references);
 
- cleanup:
-       if (ctx != NULL) {
-               LOCK(&client->lock);
-               ISC_LIST_UNLINK(client->reqctxs, ctx, link);
-               UNLOCK(&client->lock);
-               isc_mutex_destroy(&ctx->lock);
-               isc_mem_put(client->mctx, ctx, sizeof(*ctx));
-       }
+       LOCK(&client->lock);
+       ISC_LIST_UNLINK(client->reqctxs, ctx, link);
+       UNLOCK(&client->lock);
+       isc_mutex_destroy(&ctx->lock);
+       isc_mem_put(client->mctx, ctx, sizeof(*ctx));
        if (event != NULL)
                isc_event_free(ISC_EVENT_PTR(&event));
        isc_task_detach(&tclone);