From 78480892cdbbc67f419d0acfdf1865043bc31f62 Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Fri, 24 Jun 2011 12:32:38 -0700 Subject: [PATCH] Fixed test 1300 to pass the memory torture test --- tests/unit/unit1300.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; }