mirror of
https://github.com/curl/curl.git
synced 2026-07-26 09:27:21 +03:00
parent
d3b04e5600
commit
bcd0497c81
19 changed files with 41 additions and 80 deletions
|
|
@ -60,8 +60,7 @@ static void t518_close_file_descriptors(void)
|
|||
t518_num_open.rlim_cur++)
|
||||
if(t518_testfd[t518_num_open.rlim_cur] > 0)
|
||||
curlx_close(t518_testfd[t518_num_open.rlim_cur]);
|
||||
curlx_free(t518_testfd);
|
||||
t518_testfd = NULL;
|
||||
curlx_safefree(t518_testfd);
|
||||
}
|
||||
|
||||
static int t518_fopen_works(void)
|
||||
|
|
@ -289,8 +288,7 @@ static int t518_test_rlimit(int keep_open)
|
|||
curl_msnprintf(strbuff, sizeof(strbuff), "opening of %s failed", DEV_NULL);
|
||||
t518_store_errmsg(strbuff, errno);
|
||||
curl_mfprintf(stderr, "%s\n", t518_msgbuff);
|
||||
curlx_free(t518_testfd);
|
||||
t518_testfd = NULL;
|
||||
curlx_safefree(t518_testfd);
|
||||
curlx_free(memchunk);
|
||||
return -8;
|
||||
}
|
||||
|
|
@ -330,8 +328,7 @@ static int t518_test_rlimit(int keep_open)
|
|||
t518_testfd[t518_num_open.rlim_cur] >= 0;
|
||||
t518_num_open.rlim_cur++)
|
||||
curlx_close(t518_testfd[t518_num_open.rlim_cur]);
|
||||
curlx_free(t518_testfd);
|
||||
t518_testfd = NULL;
|
||||
curlx_safefree(t518_testfd);
|
||||
curlx_free(memchunk);
|
||||
return -9;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -57,8 +57,7 @@ static void t537_close_file_descriptors(void)
|
|||
t537_num_open.rlim_cur++)
|
||||
if(t537_testfd[t537_num_open.rlim_cur] > 0)
|
||||
curlx_close(t537_testfd[t537_num_open.rlim_cur]);
|
||||
curlx_free(t537_testfd);
|
||||
t537_testfd = NULL;
|
||||
curlx_safefree(t537_testfd);
|
||||
}
|
||||
|
||||
static int t537_fopen_works(void)
|
||||
|
|
@ -291,8 +290,7 @@ static int t537_test_rlimit(int keep_open)
|
|||
curl_msnprintf(strbuff, sizeof(strbuff), "opening of %s failed", DEV_NULL);
|
||||
t537_store_errmsg(strbuff, errno);
|
||||
curl_mfprintf(stderr, "%s\n", t537_msgbuff);
|
||||
curlx_free(t537_testfd);
|
||||
t537_testfd = NULL;
|
||||
curlx_safefree(t537_testfd);
|
||||
curlx_free(memchunk);
|
||||
return -7;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -47,9 +47,8 @@ static int loadfile(const char *filename, void **filedata, size_t *filesize)
|
|||
continue_reading = FALSE;
|
||||
curlx_fclose(fInCert);
|
||||
if(!continue_reading) {
|
||||
curlx_free(data);
|
||||
curlx_safefree(data);
|
||||
datasize = 0;
|
||||
data = NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -132,8 +132,7 @@ static CURLcode test_unit1607(const char *arg)
|
|||
goto error;
|
||||
dns = Curl_hash_pick(&multi->dnscache.entries,
|
||||
entry_id, strlen(entry_id) + 1);
|
||||
curlx_free(entry_id);
|
||||
entry_id = NULL;
|
||||
curlx_safefree(entry_id);
|
||||
|
||||
addr = dns ? dns->addr : NULL;
|
||||
|
||||
|
|
|
|||
|
|
@ -134,8 +134,7 @@ static CURLcode test_unit1609(const char *arg)
|
|||
|
||||
dns = Curl_hash_pick(&multi->dnscache.entries,
|
||||
entry_id, strlen(entry_id) + 1);
|
||||
curlx_free(entry_id);
|
||||
entry_id = NULL;
|
||||
curlx_safefree(entry_id);
|
||||
|
||||
addr = dns ? dns->addr : NULL;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue