aboutsummaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-10-19 20:17:16 +0000
committerYang Tse <yangsita@gmail.com>2008-10-19 20:17:16 +0000
commit5779283a52a1369cccbe1a1d314e2ec8ac949e0f (patch)
treea3abefd48a641c96e3686bf05c9615adfc80f39e /lib/url.c
parent80d0dcc9a3124dcecc9d1f7296f2ac429bc7d704 (diff)
attempt to fix or allow further detection of an elusive icc SIGSEGV
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/url.c b/lib/url.c
index 040a64cd1..a21cda0ae 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -450,8 +450,11 @@ CURLcode Curl_close(struct SessionHandle *data)
return CURLE_OK;
}
- if(data->dns.hostcachetype == HCACHE_PRIVATE)
+ if(data->dns.hostcachetype == HCACHE_PRIVATE) {
Curl_hash_destroy(data->dns.hostcache);
+ data->dns.hostcachetype = HCACHE_NONE;
+ data->dns.hostcache = NULL;
+ }
if(data->state.rangestringalloc)
free(data->state.range);