mirror of
https://github.com/curl/curl.git
synced 2026-05-01 06:37:50 +03:00
Fixed test 1300 to pass the memory torture test
This commit is contained in:
parent
17a2d70dc4
commit
78480892cd
1 changed files with 3 additions and 1 deletions
|
|
@ -40,8 +40,10 @@ static CURLcode unit_setup(void)
|
|||
if(!llist)
|
||||
return CURLE_OUT_OF_MEMORY;
|
||||
llist_destination = Curl_llist_alloc(test_curl_llist_dtor);
|
||||
if(!llist_destination)
|
||||
if(!llist_destination) {
|
||||
Curl_llist_destroy(llist, NULL);
|
||||
return CURLE_OUT_OF_MEMORY;
|
||||
}
|
||||
|
||||
return CURLE_OK;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue