mirror of
https://github.com/curl/curl.git
synced 2026-08-25 23:23:31 +03:00
hostip: fix unintended destruction of hash table
.. and added unit1602 for hash.c
This commit is contained in:
parent
39b9bf60d1
commit
4883f7019d
11 changed files with 136 additions and 12 deletions
|
|
@ -137,7 +137,7 @@ struct curl_hash *Curl_global_host_cache_init(void)
|
|||
void Curl_global_host_cache_dtor(void)
|
||||
{
|
||||
if(host_cache_initialized) {
|
||||
Curl_hash_clean(&hostname_cache);
|
||||
Curl_hash_destroy(&hostname_cache);
|
||||
host_cache_initialized = 0;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue