Skip to content
Snippets Groups Projects
Commit 78480892 authored by Dan Fandrich's avatar Dan Fandrich
Browse files

Fixed test 1300 to pass the memory torture test

parent 17a2d70d
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment