fix(cos/put): null fd after close to fix double closing

This commit is contained in:
Minglei Jin 2023-12-12 13:59:20 +08:00
parent 394dc6c725
commit b860e3827c
1 changed files with 1 additions and 0 deletions

View File

@ -710,6 +710,7 @@ upload:
}
cos_cp_close(cp.thefile);
cp.thefile = 0;
int size = 0;
size += growbuffer_append(&(manager.gb), "<CompleteMultipartUpload>", strlen("<CompleteMultipartUpload>"));