fix out of memory handling issue

This commit is contained in:
Yang Tse 2007-04-07 17:25:19 +00:00
parent d9e89e170f
commit a11374d994

View File

@ -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;