fix: close file

This commit is contained in:
xsren 2024-08-19 17:06:58 +08:00
parent bf471f8aee
commit 15a4fe9c84
1 changed files with 1 additions and 0 deletions

View File

@ -681,6 +681,7 @@ static void monitorSendAllSlowLogFromTempDir(int64_t clusterId) {
}
char* tmp = taosStrdup(filename);
monitorSendSlowLogAtBeginning(clusterId, &tmp, pFile, 0);
(void)taosCloseFile(&pFile);
taosMemoryFree(tmp);
}