diff --git a/tests/libtest/lib1502.c b/tests/libtest/lib1502.c index 5b75e2f2ab..bd7c7c8640 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; }