fix: coverity issues

CID: 400233
This commit is contained in:
Ganlin Zhao 2022-10-11 11:29:18 +08:00
parent 5583ee42c0
commit fc598288be
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ STSBuf* tsBufCreate(bool autoDelete, int32_t order) {
}
if (!autoDelete) {
if (taosRemoveFile(pTSBuf->path) == NULL) {
if (taosRemoveFile(pTSBuf->path) != 0) {
taosMemoryFree(pTSBuf);
return NULL;
}