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(""));