mirror of https://github.com/moparisthebest/curl
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 */
|
/* Free list of given URLs */
|
||||||
clean_getout(config);
|
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
|
#ifndef CURL_DISABLE_LIBCURL_OPTION
|
||||||
easysrc_cleanup();
|
easysrc_cleanup();
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue