aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/libtest/lib1559.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/tests/libtest/lib1559.c b/tests/libtest/lib1559.c
index 2aa3615e0..e1b417548 100644
--- a/tests/libtest/lib1559.c
+++ b/tests/libtest/lib1559.c
@@ -34,6 +34,9 @@ int test(char *URL)
CURLU *u;
(void)URL;
+ if(!longurl)
+ return 1;
+
memset(longurl, 'a', EXCESSIVE);
longurl[EXCESSIVE-1] = 0;
@@ -62,15 +65,8 @@ int test(char *URL)
curl_url_cleanup(u);
}
- free(longurl);
-
- curl_easy_cleanup(curl);
- curl_global_cleanup();
-
- return 0;
-
test_cleanup:
-
+ free(longurl);
curl_easy_cleanup(curl);
curl_global_cleanup();