aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2011-06-24 12:32:38 -0700
committerDan Fandrich <dan@coneharvesters.com>2011-06-24 12:33:30 -0700
commit78480892cdbbc67f419d0acfdf1865043bc31f62 (patch)
tree10e489ad7e2f2289c4229c2345074b1c3d3fd183
parent17a2d70dc40fedef7865648f3662d0e239a3036c (diff)
Fixed test 1300 to pass the memory torture test
-rw-r--r--tests/unit/unit1300.c4
1 files changed, 3 insertions, 1 deletions
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;
}