fix:[TD-31899] check return value by malloc/strdup

This commit is contained in:
wangmm0220 2024-09-20 09:34:37 +08:00
parent f98db0d995
commit 4cbb3b8d18
1 changed files with 0 additions and 2 deletions

View File

@ -740,11 +740,9 @@ static void monitorSendAllSlowLogFromTempDir(int64_t clusterId) {
tscError("failed to dup string:%s since %s", filename, terrstr());
if (taosUnLockFile(pFile) != 0) {
tscError("failed to unlock file:%s, terrno:%d", filename, terrno);
return;
}
if (taosCloseFile(&(pFile)) != 0) {
tscError("failed to close file:%s, terrno:%d", filename, terrno);
return;
}
continue;
}