From: Daniel Gustafsson Date: Fri, 8 Dec 2023 20:12:06 +0000 (+0100) Subject: doh: remove unused local variable X-Git-Tag: curl-8_6_0~237 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d65b8868c6d04d2d7fdedbc42bce3cf0fe60887a;p=thirdparty%2Fcurl.git doh: remove unused local variable The nurl variable is no longer used during probing following a refactoring, so remove. Closes #12491 --- diff --git a/lib/doh.c b/lib/doh.c index 1d928e92c7..fd89596284 100644 --- a/lib/doh.c +++ b/lib/doh.c @@ -218,7 +218,6 @@ static CURLcode dohprobe(struct Curl_easy *data, struct curl_slist *headers) { struct Curl_easy *doh = NULL; - char *nurl = NULL; CURLcode result = CURLE_OK; timediff_t timeout_ms; DOHcode d = doh_encode(host, dnstype, p->dohbuffer, sizeof(p->dohbuffer), @@ -351,11 +350,9 @@ static CURLcode dohprobe(struct Curl_easy *data, } else goto error; - free(nurl); return CURLE_OK; error: - free(nurl); Curl_close(&doh); return result; }