From 4cbb3b8d18fe222cefcd77b43b850861a81364bb Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Fri, 20 Sep 2024 09:34:37 +0800 Subject: [PATCH] fix:[TD-31899] check return value by malloc/strdup --- source/client/src/clientMonitor.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/source/client/src/clientMonitor.c b/source/client/src/clientMonitor.c index f9586da366..4c1a484c20 100644 --- a/source/client/src/clientMonitor.c +++ b/source/client/src/clientMonitor.c @@ -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; }