1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

url: cleanup dangling DOH request headers too

Follow-up to 9bc44ff64d

Credit to OSS-Fuzz
Bug: https://crbug.com/oss-fuzz/17269

Closes #4372
This commit is contained in:
Daniel Stenberg 2019-09-17 23:47:12 +02:00
parent 7c596f5dea
commit beb4350917
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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);