aboutsummaryrefslogtreecommitdiff
path: root/lib/easy.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-11-26 09:41:54 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-11-26 09:41:54 +0000
commit7df5677b4677eabbb8d1477171f3c9bf0028f08d (patch)
tree6dff57ce9e751cfb7e6858b4a2fc89a67d281604 /lib/easy.c
parent2e71876b28a83fbeaa9f7feb5896a7e35297ad74 (diff)
fixed Curl_freeaddrinfo() to only free addrinfo, and added Curl_freednsinfo()
for freeing single dns cache entries
Diffstat (limited to 'lib/easy.c')
-rw-r--r--lib/easy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/easy.c b/lib/easy.c
index b128180d8..a068604b4 100644
--- a/lib/easy.c
+++ b/lib/easy.c
@@ -238,7 +238,7 @@ CURLcode curl_easy_perform(CURL *curl)
data->hostcache = Curl_global_host_cache_get();
}
else {
- data->hostcache = Curl_hash_alloc(7, Curl_freeaddrinfo);
+ data->hostcache = Curl_hash_alloc(7, Curl_freednsinfo);
}
}