aboutsummaryrefslogtreecommitdiff
path: root/tests/libtest/lib570.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2010-02-06 13:21:45 +0000
committerYang Tse <yangsita@gmail.com>2010-02-06 13:21:45 +0000
commit0f4a91afdedc4b1f7b02f8b015fde1889d80c104 (patch)
treea3277cf4f8ee0db7523ab4e33b0221faab1a5800 /tests/libtest/lib570.c
parent2c2464a68211fb788b21de50a51798baa57423be (diff)
OOM handling fix
Diffstat (limited to 'tests/libtest/lib570.c')
-rw-r--r--tests/libtest/lib570.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/libtest/lib570.c b/tests/libtest/lib570.c
index 4f40a0276..8cfc0b88b 100644
--- a/tests/libtest/lib570.c
+++ b/tests/libtest/lib570.c
@@ -95,6 +95,9 @@ int test(char *URL)
test_cleanup:
+ if(stream_uri)
+ free(stream_uri);
+
curl_easy_cleanup(curl);
curl_global_cleanup();