fix out of memory handling issue

This commit is contained in:
Yang Tse
2007-04-08 22:49:38 +00:00
parent c518c52aba
commit 0e05a6329a
2 changed files with 12 additions and 3 deletions

View File

@@ -397,7 +397,10 @@ CURLcode curl_easy_perform(CURL *easy)
mcode = curl_multi_add_handle(multi, easy);
if(mcode) {
curl_multi_cleanup(multi);
return CURLE_FAILED_INIT;
if(mcode == CURLM_OUT_OF_MEMORY)
return CURLE_OUT_OF_MEMORY;
else
return CURLE_FAILED_INIT;
}
/* we start some action by calling perform right away */