]> granicus.if.org Git - curl/commitdiff
fix the hash init to call the correct dns cleanup function
authorDaniel Stenberg <daniel@haxx.se>
Thu, 28 Nov 2002 15:48:54 +0000 (15:48 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 28 Nov 2002 15:48:54 +0000 (15:48 +0000)
lib/multi.c

index f901f3a0f3cef6e02633c2cba80d22e21a676e9c..8548354bd9781e251b96a433e1a2e19b1b525b1a 100644 (file)
@@ -313,9 +313,8 @@ CURLMcode curl_multi_perform(CURLM *multi_handle, int *running_handles)
         easy->easy_handle->hostcache = Curl_global_host_cache_get();
       }
       else {
-        if (multi->hostcache == NULL) {
-          multi->hostcache = Curl_hash_alloc(7, Curl_freeaddrinfo);
-        }
+        if (multi->hostcache == NULL)
+          multi->hostcache = Curl_hash_alloc(7, Curl_freednsinfo);
 
         easy->easy_handle->hostcache = multi->hostcache;
       }