fix:[TD-31899] check return value by malloc/strdup
This commit is contained in:
parent
f98db0d995
commit
4cbb3b8d18
|
@ -740,11 +740,9 @@ static void monitorSendAllSlowLogFromTempDir(int64_t clusterId) {
|
||||||
tscError("failed to dup string:%s since %s", filename, terrstr());
|
tscError("failed to dup string:%s since %s", filename, terrstr());
|
||||||
if (taosUnLockFile(pFile) != 0) {
|
if (taosUnLockFile(pFile) != 0) {
|
||||||
tscError("failed to unlock file:%s, terrno:%d", filename, terrno);
|
tscError("failed to unlock file:%s, terrno:%d", filename, terrno);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
if (taosCloseFile(&(pFile)) != 0) {
|
if (taosCloseFile(&(pFile)) != 0) {
|
||||||
tscError("failed to close file:%s, terrno:%d", filename, terrno);
|
tscError("failed to close file:%s, terrno:%d", filename, terrno);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue