mirror of
https://github.com/curl/curl.git
synced 2026-08-03 08:50:31 +03:00
tool: fixed double closing of file handle bug
This commit is contained in:
parent
c494e9e29d
commit
87af4d594a
1 changed files with 1 additions and 0 deletions
|
|
@ -855,6 +855,7 @@ static CURLcode post_close_output(struct per_transfer *per,
|
|||
/* Close the outs file */
|
||||
if(outs->fopened && outs->stream) {
|
||||
rc = curlx_fclose(outs->stream);
|
||||
outs->stream = NULL;
|
||||
if(!result && rc) {
|
||||
/* something went wrong in the writing process */
|
||||
result = CURLE_WRITE_ERROR;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue