return on memory alloc fail

This commit is contained in:
Daniel Stenberg 2004-05-13 15:17:49 +00:00
parent 54cd2bee58
commit 1c69b15c7c
1 changed files with 2 additions and 0 deletions

View File

@ -120,6 +120,8 @@ CURLM *curl_multi_init(void)
memset(multi, 0, sizeof(struct Curl_multi));
multi->type = CURL_MULTI_HANDLE;
}
else
return NULL;
multi->hostcache = Curl_mk_dnscache();
if(!multi->hostcache) {