mirror of
https://github.com/moparisthebest/curl
synced 2025-03-11 07:39:50 -04:00
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:
parent
e35187741b
commit
087748c48e
@ -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);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user