fix(stream): fix memory leak.

This commit is contained in:
Haojun Liao 2023-07-27 23:06:53 +08:00
parent fbb33be85d
commit 7f3d1dc464
1 changed files with 1 additions and 0 deletions

View File

@ -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;