aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-09-17 23:47:12 +0200
committerDaniel Stenberg <daniel@haxx.se>2019-09-18 07:48:49 +0200
commitbeb435091793ceebf5e0b7502b17f785c051b3f7 (patch)
treed6c0745327368609d1f94665711d9fa94963ead8
parent7c596f5dea586c1ba99dfbe7f3ce1996d82f7de0 (diff)
url: cleanup dangling DOH request headers too
Follow-up to 9bc44ff64d9081 Credit to OSS-Fuzz Bug: https://crbug.com/oss-fuzz/17269 Closes #4372
-rw-r--r--lib/url.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/url.c b/lib/url.c
index 94dc9b8b2..572cd9c68 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -404,6 +404,7 @@ CURLcode Curl_close(struct Curl_easy *data)
Curl_close(data->req.doh.probe[1].easy);
free(data->req.doh.probe[0].serverdoh.memory);
free(data->req.doh.probe[1].serverdoh.memory);
+ curl_slist_free_all(data->req.doh.headers);
/* destruct wildcard structures if it is needed */
Curl_wildcard_dtor(&data->wildcard);