mirror of
https://github.com/curl/curl.git
synced 2024-11-21 01:16:58 +08:00
fix out of memory handling issue
This commit is contained in:
parent
d9e89e170f
commit
a11374d994
@ -352,6 +352,7 @@ CURLM *curl_multi_init(void)
|
||||
|
||||
multi->connc = Curl_mk_connc(CONNCACHE_MULTI, -1);
|
||||
if(!multi->connc) {
|
||||
Curl_hash_destroy(multi->sockhash);
|
||||
Curl_hash_destroy(multi->hostcache);
|
||||
free(multi);
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user