From 2b90bb6564ff85b53e366a2e5bc92845c8af6226 Mon Sep 17 00:00:00 2001 From: Hongze Cheng Date: Fri, 13 Nov 2020 14:09:11 +0800 Subject: [PATCH] [TD-2084]: invalid read when close TSDB --- src/tsdb/src/tsdbMemTable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tsdb/src/tsdbMemTable.c b/src/tsdb/src/tsdbMemTable.c index 5680abcc6f..021c152260 100644 --- a/src/tsdb/src/tsdbMemTable.c +++ b/src/tsdb/src/tsdbMemTable.c @@ -462,8 +462,8 @@ _exit: tdFreeDataCols(pDataCols); tsdbDestroyCommitIters(iters, pMem->maxTables); tsdbDestroyHelper(&whelper); - tsdbEndCommit(pRepo); tsdbInfo("vgId:%d commit over", pRepo->config.tsdbId); + tsdbEndCommit(pRepo); return NULL; } -- GitLab