[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnurl] 02/151: build: fix for CURL_DISABLE_DOH
From: |
gnunet |
Subject: |
[gnurl] 02/151: build: fix for CURL_DISABLE_DOH |
Date: |
Fri, 20 Dec 2019 14:25:11 +0100 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository gnurl.
commit 93738efe162a1646a98d0c9b649d5cafedabf1ea
Author: Wyatt O'Day <address@hidden>
AuthorDate: Wed Nov 6 17:39:49 2019 -0500
build: fix for CURL_DISABLE_DOH
Fixes https://github.com/curl/curl/issues/4565
Closes https://github.com/curl/curl/pull/4566
---
lib/url.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/lib/url.c b/lib/url.c
index 8285474fd..4f4120146 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -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
}
--
To stop receiving notification emails like this one, please contact
address@hidden.
- [gnurl] branch master updated (70745a841 -> 486ada36f), gnunet, 2019/12/20
- [gnurl] 02/151: build: fix for CURL_DISABLE_DOH,
gnunet <=
- [gnurl] 06/151: mailmap: fixup Massimiliano Fantuzzi, gnunet, 2019/12/20
- [gnurl] 05/151: scripts/contributors: make committers get included too, gnunet, 2019/12/20
- [gnurl] 04/151: configure: fix typo in help text, gnunet, 2019/12/20
- [gnurl] 10/151: checksrc: repair the copyrightyear check, gnunet, 2019/12/20
- [gnurl] 11/151: test1560: require IPv6 for IPv6 aware URL parsing, gnunet, 2019/12/20
- [gnurl] 03/151: ntlm: USE_WIN32_CRYPTO check removed to get USE_NTLM2SESSION set, gnunet, 2019/12/20
- [gnurl] 07/151: curlver: bump to 7.67.1, gnunet, 2019/12/20
- [gnurl] 01/151: configure: avoid unportable `==' test(1) operator, gnunet, 2019/12/20
- [gnurl] 22/151: quiche: reject headers in the wrong order, gnunet, 2019/12/20
- [gnurl] 13/151: TODO: Run web-platform-tests url tests, gnunet, 2019/12/20