/* May be called with 'data' == NULL for global cache.  */
void Curl_resolv_unlock(struct Curl_easy *data, struct Curl_dns_entry *dns)
/* May be called with 'data' == NULL for global cache.  */
void Curl_resolv_unlock(struct Curl_easy *data, struct Curl_dns_entry *dns)
{
  if(data && data->share)
    Curl_share_lock(data, CURL_LOCK_DATA_DNS, CURL_LOCK_ACCESS_SINGLE);
  freednsentry(dns);
  if(data && data->share)
    Curl_share_unlock(data, CURL_LOCK_DATA_DNS);
}