mirror of
https://github.com/curl/curl.git
synced 2026-07-25 02:47:17 +03:00
lib1502: fix memory leak in torture test
Reported-by: Marcel Raad Fixes #2861 Closes #2863
This commit is contained in:
parent
6fac5a3e65
commit
531cb203c1
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue