diff options
Diffstat (limited to 'tests/libtest/lib510.c')
-rw-r--r-- | tests/libtest/lib510.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/libtest/lib510.c b/tests/libtest/lib510.c index 051a773c5..4dfdbd962 100644 --- a/tests/libtest/lib510.c +++ b/tests/libtest/lib510.c @@ -72,9 +72,11 @@ int test(char *URL) /* always cleanup */ curl_easy_cleanup(curl); + } + + if(slist) /* clean up the headers list */ curl_slist_free_all(slist); - } return res; } |