diff options
author | Daniel Stenberg <daniel@haxx.se> | 2019-12-12 15:08:19 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-12-12 15:08:19 +0100 |
commit | 94cf88efc4c93977e3d1718d995b465dd97f1a44 (patch) | |
tree | a43dace1f8aa74fa19c0a31c6883bca63e0d759c /tests | |
parent | 5dc56eb95d1a5d9ac4c35d1ad038d98731decab2 (diff) | |
download | curl-94cf88efc4c93977e3d1718d995b465dd97f1a44.tar.gz |
lib1557: fix mem-leak in OOM
Diffstat (limited to 'tests')
-rw-r--r-- | tests/libtest/lib1557.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/libtest/lib1557.c b/tests/libtest/lib1557.c index bd0f20a85..d7132ad04 100644 --- a/tests/libtest/lib1557.c +++ b/tests/libtest/lib1557.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2019, 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 @@ -49,13 +49,13 @@ int test(char *URL) multi_perform(curlm, &running_handles); multi_remove_handle(curlm, curl2); - curl_easy_cleanup(curl2); /* If curl2 is still in the connect-pending list, this will crash */ multi_remove_handle(curlm, curl1); - curl_easy_cleanup(curl1); test_cleanup: + curl_easy_cleanup(curl1); + curl_easy_cleanup(curl2); curl_multi_cleanup(curlm); curl_global_cleanup(); return res; |