mirror of
https://github.com/curl/curl.git
synced 2026-05-15 11:56:25 +03:00
better bailing out on memory failure
This commit is contained in:
parent
e11710714c
commit
d7cb09bd18
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue