From 7f3d1dc46430013dacab7e8419ce95a757dd71be Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Thu, 27 Jul 2023 23:06:53 +0800 Subject: [PATCH] fix(stream): fix memory leak. --- source/dnode/vnode/src/tq/tq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source/dnode/vnode/src/tq/tq.c b/source/dnode/vnode/src/tq/tq.c index 8faa5dcc62..310cc3599b 100644 --- a/source/dnode/vnode/src/tq/tq.c +++ b/source/dnode/vnode/src/tq/tq.c @@ -1179,6 +1179,7 @@ int32_t tqProcessTaskScanHistory(STQ* pTq, SRpcMsg* pMsg) { if (done) { pTask->tsInfo.step2Start = taosGetTimestampMs(); streamTaskEndScanWAL(pTask); + streamMetaReleaseTask(pMeta, pTask); } else { if (!streamTaskRecoverScanStep1Finished(pTask)) { STimeWindow* pWindow = &pTask->dataRange.window; -- GitLab