]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
doh: remove unused local variable
authorDaniel Gustafsson <daniel@yesql.se>
Fri, 8 Dec 2023 20:12:06 +0000 (21:12 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 8 Dec 2023 23:14:18 +0000 (00:14 +0100)
The nurl variable is no longer used during probing following
a refactoring, so remove.

Closes #12491

lib/doh.c

index 1d928e92c73e26bbac4c230e9819e557f2d3d8dd..fd89596284f09e086592203e261bcfc5d139e958 100644 (file)
--- 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;
 }