better bailing out on memory failure

This commit is contained in:
Daniel Stenberg 2004-05-17 08:04:42 +00:00
parent e11710714c
commit d7cb09bd18

View File

@ -342,8 +342,11 @@ CURLMcode curl_multi_perform(CURLM *multi_handle, int *running_handles)
else
free(gotourl);
}
else
else {
easy->result = CURLE_OUT_OF_MEMORY;
easy->state = CURLM_STATE_COMPLETED;
break;
}
}
}