mirror of
https://github.com/curl/curl.git
synced 2026-07-24 09:07:47 +03:00
fix out of memory handling issue
This commit is contained in:
parent
d9e89e170f
commit
a11374d994
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue