attempt to fix or allow further detection of an elusive icc SIGSEGV

This commit is contained in:
Yang Tse
2008-10-19 20:17:16 +00:00
parent 80d0dcc9a3
commit 5779283a52
7 changed files with 21 additions and 3 deletions

View File

@@ -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);