Curl_share_unlock(data, CURL_LOCK_DATA_SHARE);
}
- /* Leave no dangling DOH handles behind */
- Curl_close(data->req.doh.probe[0].easy);
- 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);
{
Curl_safefree(data->req.protop);
Curl_safefree(data->req.newurl);
+ Curl_close(data->req.doh.probe[0].easy);
+ data->req.doh.probe[0].easy = NULL;
+ Curl_close(data->req.doh.probe[1].easy);
+ data->req.doh.probe[1].easy = NULL;
}