diff options
Diffstat (limited to 'tests/unit/unit1303.c')
-rw-r--r-- | tests/unit/unit1303.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/unit/unit1303.c b/tests/unit/unit1303.c index 945b82ba7..4c25fb963 100644 --- a/tests/unit/unit1303.c +++ b/tests/unit/unit1303.c @@ -5,11 +5,11 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2019, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms - * are also available at https://curl.haxx.se/docs/copyright.html. + * are also available at https://curl.se/docs/copyright.html. * * You may opt to use, copy, modify, merge, publish, distribute and/or sell * copies of the Software, and permit persons to whom the Software is @@ -33,8 +33,10 @@ static CURLcode unit_setup(void) global_init(CURL_GLOBAL_ALL); data = curl_easy_init(); - if(!data) + if(!data) { + curl_global_cleanup(); return CURLE_OUT_OF_MEMORY; + } return res; } |