aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2018-08-10 13:18:17 +0200
committerDaniel Stenberg <daniel@haxx.se>2018-08-10 16:16:06 +0200
commit531cb203c14498561ea12992cf2b2184c34222d6 (patch)
treea1e5541fda612974ca9c3bc47b55b2228a2cdda2 /tests
parent6fac5a3e65217f1686927ecc8eda567888b29d4f (diff)
lib1502: fix memory leak in torture test
Reported-by: Marcel Raad Fixes #2861 Closes #2863
Diffstat (limited to 'tests')
-rw-r--r--tests/libtest/lib1502.c2
1 files changed, 2 insertions, 0 deletions
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;
}