mirror of
https://github.com/curl/curl.git
synced 2026-07-22 21:17:16 +03:00
build: fix for CURL_DISABLE_DOH
Fixes https://github.com/curl/curl/issues/4565 Closes https://github.com/curl/curl/pull/4566
This commit is contained in:
parent
bc1cd39a1d
commit
93738efe16
1 changed files with 5 additions and 0 deletions
|
|
@ -403,9 +403,11 @@ CURLcode Curl_close(struct Curl_easy **datap)
|
|||
Curl_share_unlock(data, CURL_LOCK_DATA_SHARE);
|
||||
}
|
||||
|
||||
#ifndef CURL_DISABLE_DOH
|
||||
free(data->req.doh.probe[0].serverdoh.memory);
|
||||
free(data->req.doh.probe[1].serverdoh.memory);
|
||||
curl_slist_free_all(data->req.doh.headers);
|
||||
#endif
|
||||
|
||||
/* destruct wildcard structures if it is needed */
|
||||
Curl_wildcard_dtor(&data->wildcard);
|
||||
|
|
@ -1987,8 +1989,11 @@ void Curl_free_request_state(struct Curl_easy *data)
|
|||
{
|
||||
Curl_safefree(data->req.protop);
|
||||
Curl_safefree(data->req.newurl);
|
||||
|
||||
#ifndef CURL_DISABLE_DOH
|
||||
Curl_close(&data->req.doh.probe[0].easy);
|
||||
Curl_close(&data->req.doh.probe[1].easy);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue