From 531cb203c14498561ea12992cf2b2184c34222d6 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 10 Aug 2018 13:18:17 +0200 Subject: lib1502: fix memory leak in torture test Reported-by: Marcel Raad Fixes #2861 Closes #2863 --- tests/libtest/lib1502.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/libtest/lib1502.c b/tests/libtest/lib1502.c index 5b75e2f2a..bd7c7c864 100644 --- a/tests/libtest/lib1502.c +++ b/tests/libtest/lib1502.c @@ -79,6 +79,8 @@ int test(char *URL) easy = dup; } else { + curl_slist_free_all(dns_cache_list); + curl_easy_cleanup(easy); return CURLE_OUT_OF_MEMORY; } -- cgit v1.2.1