don't close the trace stream until _after_ the easy handle has been cleaned
up, as that can send traces too
This commit is contained in:
@@ -3558,15 +3558,15 @@ operate(struct Configurable *config, int argc, char *argv[])
|
|||||||
if(config->headerfile && !headerfilep && heads.stream)
|
if(config->headerfile && !headerfilep && heads.stream)
|
||||||
fclose(heads.stream);
|
fclose(heads.stream);
|
||||||
|
|
||||||
if(config->trace_fopened && config->trace_stream)
|
|
||||||
fclose(config->trace_stream);
|
|
||||||
|
|
||||||
if(allocuseragent)
|
if(allocuseragent)
|
||||||
free(config->useragent);
|
free(config->useragent);
|
||||||
|
|
||||||
/* cleanup the curl handle! */
|
/* cleanup the curl handle! */
|
||||||
curl_easy_cleanup(curl);
|
curl_easy_cleanup(curl);
|
||||||
|
|
||||||
|
if(config->trace_fopened && config->trace_stream)
|
||||||
|
fclose(config->trace_stream);
|
||||||
|
|
||||||
if(config->errors_fopened)
|
if(config->errors_fopened)
|
||||||
fclose(config->errors);
|
fclose(config->errors);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user