From: Dan Fandrich Date: Fri, 24 Jun 2011 19:32:38 +0000 (-0700) Subject: Fixed test 1300 to pass the memory torture test X-Git-Tag: curl-7_22_0~246 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=78480892cdbbc67f419d0acfdf1865043bc31f62;p=curl Fixed test 1300 to pass the memory torture test --- diff --git a/tests/unit/unit1300.c b/tests/unit/unit1300.c index 199cf2c9e..2b8341683 100644 --- a/tests/unit/unit1300.c +++ b/tests/unit/unit1300.c @@ -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; }