From cedc7bf1b6641ef1e7aff1a44800ce815329f2cf Mon Sep 17 00:00:00 2001 From: Hongze Cheng Date: Wed, 16 Aug 2023 17:21:51 +0800 Subject: [PATCH] fix: memory leak when commit --- source/dnode/vnode/src/tsdb/tsdbCommit2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source/dnode/vnode/src/tsdb/tsdbCommit2.c b/source/dnode/vnode/src/tsdb/tsdbCommit2.c index d4fa4de510..3bed5b8b53 100644 --- a/source/dnode/vnode/src/tsdb/tsdbCommit2.c +++ b/source/dnode/vnode/src/tsdb/tsdbCommit2.c @@ -531,6 +531,7 @@ static int32_t tsdbCloseCommitter(SCommitter2 *committer, int32_t eno) { TARRAY2_DESTROY(committer->dataIterArray, NULL); TARRAY2_DESTROY(committer->tombIterArray, NULL); TARRAY2_DESTROY(committer->fopArray, NULL); + TARRAY2_DESTROY(committer->sttReaderArray, NULL); tsdbFSDestroyCopySnapshot(&committer->fsetArr); _exit: -- GitLab