fix(cos/list): free object array in exception

This commit is contained in:
Minglei Jin 2023-11-15 09:08:27 +08:00
parent 7f65e92b81
commit 951cfbb096
1 changed files with 1 additions and 0 deletions

View File

@ -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;