1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 15:48:49 -05:00

return on memory alloc fail

This commit is contained in:
Daniel Stenberg 2004-05-13 15:17:49 +00:00
parent 54cd2bee58
commit 1c69b15c7c

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) {