mirror of
https://github.com/curl/curl.git
synced 2026-07-16 13:47:31 +03:00
test #598: OOM handling fixes
This commit is contained in:
parent
3c80309c27
commit
3aab542e77
1 changed files with 6 additions and 0 deletions
|
|
@ -47,6 +47,10 @@ int test(char *URL)
|
|||
test_setopt(curl, CURLOPT_VERBOSE, 1L);
|
||||
|
||||
res = curl_easy_perform(curl);
|
||||
if(res) {
|
||||
fprintf(stderr, "retrieve 1 failed\n");
|
||||
goto test_cleanup;
|
||||
}
|
||||
|
||||
curl_easy_reset(curl);
|
||||
|
||||
|
|
@ -55,6 +59,8 @@ int test(char *URL)
|
|||
test_setopt(curl, CURLOPT_VERBOSE, 1L);
|
||||
|
||||
res = curl_easy_perform(curl);
|
||||
if(res)
|
||||
fprintf(stderr, "retrieve 2 failed\n");
|
||||
|
||||
test_cleanup:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue