fix the hash init to call the correct dns cleanup function

This commit is contained in:
Daniel Stenberg 2002-11-28 15:48:54 +00:00
parent 113850a748
commit d64dd77993

View File

@ -313,9 +313,8 @@ CURLMcode curl_multi_perform(CURLM *multi_handle, int *running_handles)
easy->easy_handle->hostcache = Curl_global_host_cache_get(); easy->easy_handle->hostcache = Curl_global_host_cache_get();
} }
else { else {
if (multi->hostcache == NULL) { if (multi->hostcache == NULL)
multi->hostcache = Curl_hash_alloc(7, Curl_freeaddrinfo); multi->hostcache = Curl_hash_alloc(7, Curl_freednsinfo);
}
easy->easy_handle->hostcache = multi->hostcache; easy->easy_handle->hostcache = multi->hostcache;
} }