diff --git a/source/common/src/cos.c b/source/common/src/cos.c index 6643cc3925..71f0df5ebe 100644 --- a/source/common/src/cos.c +++ b/source/common/src/cos.c @@ -717,6 +717,7 @@ static SArray *getListByPrefix(const char *prefix) { return data.objectArray; } } else { + taosArrayDestroyEx(data.objectArray, s3FreeObjectKey); s3PrintError(__func__, data.status, data.err_msg); } return NULL;