diff --git a/lib/multi.c b/lib/multi.c index a21fc56746..a1111ccd50 100644 --- a/lib/multi.c +++ b/lib/multi.c @@ -383,6 +383,9 @@ CURLMcode curl_multi_cleanup(CURLM *multi_handle) easy = multi->easy.next; while(easy) { nexteasy=easy->next; + /* clear out the usage of the shared DNS cache */ + easy->easy_handle->hostcache = NULL; + free(easy); easy = nexteasy; }