mirror of
https://github.com/curl/curl.git
synced 2025-02-23 15:10:03 +08:00
tool_operate: Let curl handle cleanup take place in config_free()
This commit is contained in:
parent
6374ab2a36
commit
c5f8e2f5f4
@ -1773,12 +1773,6 @@ static int operate_do(struct Configurable *config)
|
||||
/* Free list of given URLs */
|
||||
clean_getout(config);
|
||||
|
||||
/* Cleanup the curl handle now that our
|
||||
progressbar struct is still in scope */
|
||||
if(curl) {
|
||||
curl_easy_cleanup(curl);
|
||||
config->easy = curl = NULL;
|
||||
}
|
||||
#ifndef CURL_DISABLE_LIBCURL_OPTION
|
||||
easysrc_cleanup();
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user