diff options
Diffstat (limited to 'lib/share.c')
-rw-r--r-- | lib/share.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/share.c b/lib/share.c index 6430611b3..838a15916 100644 --- a/lib/share.c +++ b/lib/share.c @@ -168,8 +168,10 @@ curl_share_cleanup(CURLSH *sh) return CURLSHE_IN_USE; } - if(share->hostcache) + if(share->hostcache) { Curl_hash_destroy(share->hostcache); + share->hostcache = NULL; + } #if !defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_COOKIES) if(share->cookies) |