]> granicus.if.org Git - curl/commitdiff
tool_operate: Let curl handle cleanup take place in config_free()
authorSteve Holme <steve_holme@hotmail.com>
Fri, 7 Feb 2014 21:32:29 +0000 (21:32 +0000)
committerSteve Holme <steve_holme@hotmail.com>
Sun, 9 Feb 2014 10:57:56 +0000 (10:57 +0000)
src/tool_operate.c

index 46d20bf578254ecf207ba3deaf270d4216556fdf..326b5493f39849474e7f90070cd94c48274549bf 100644 (file)
@@ -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