diff options
author | Daniel Stenberg <daniel@haxx.se> | 2019-09-17 23:47:12 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-09-18 07:48:49 +0200 |
commit | beb435091793ceebf5e0b7502b17f785c051b3f7 (patch) | |
tree | d6c0745327368609d1f94665711d9fa94963ead8 /lib | |
parent | 7c596f5dea586c1ba99dfbe7f3ce1996d82f7de0 (diff) | |
download | curl-beb435091793ceebf5e0b7502b17f785c051b3f7.tar.gz |
url: cleanup dangling DOH request headers too
Follow-up to 9bc44ff64d9081
Credit to OSS-Fuzz
Bug: https://crbug.com/oss-fuzz/17269
Closes #4372
Diffstat (limited to 'lib')
-rw-r--r-- | lib/url.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |