Fixed test 1300 to pass the memory torture test

This commit is contained in:
Dan Fandrich 2011-06-24 12:32:38 -07:00
parent 17a2d70dc4
commit 78480892cd

View File

@ -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;
}