From 26614ff964163602c033f50bc4053bb27a0b863d Mon Sep 17 00:00:00 2001 From: Hongze Cheng Date: Mon, 18 May 2020 08:53:33 +0000 Subject: [PATCH] fix coredump --- src/tsdb/src/tsdbFile.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tsdb/src/tsdbFile.c b/src/tsdb/src/tsdbFile.c index 50ef078a0c..dcea2737ff 100644 --- a/src/tsdb/src/tsdbFile.c +++ b/src/tsdb/src/tsdbFile.c @@ -97,6 +97,8 @@ static int tsdbInitFile(char *dataDir, int fid, const char *suffix, SFile *pFile pBuf = taosDecodeFixed32(pBuf, &version); pBuf = tsdbDecodeSFileInfo(pBuf, &(pFile->info)); + tsdbCloseFile(pFile); + return 0; } -- GitLab