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:
parent
54cd2bee58
commit
1c69b15c7c
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user