From b860e3827cd2545fd774578e52d699f9cd78593c Mon Sep 17 00:00:00 2001 From: Minglei Jin Date: Tue, 12 Dec 2023 13:59:20 +0800 Subject: [PATCH] fix(cos/put): null fd after close to fix double closing --- source/common/src/cos.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source/common/src/cos.c b/source/common/src/cos.c index bcbd02b2cd..d494d6f175 100644 --- a/source/common/src/cos.c +++ b/source/common/src/cos.c @@ -710,6 +710,7 @@ upload: } cos_cp_close(cp.thefile); + cp.thefile = 0; int size = 0; size += growbuffer_append(&(manager.gb), "", strlen(""));