mirror of
https://github.com/curl/curl.git
synced 2024-11-27 05:50:21 +08:00
Fixed test 1300 to pass the memory torture test
This commit is contained in:
parent
17a2d70dc4
commit
78480892cd
@ -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…
Reference in New Issue
Block a user