1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-24 00:58:48 -05:00

lib1502: fix memory leak in torture test

Reported-by: Marcel Raad
Fixes #2861
Closes #2863
This commit is contained in:
Daniel Stenberg 2018-08-10 13:18:17 +02:00
parent 6fac5a3e65
commit 531cb203c1
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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;
}