fix(stream): fix memory leak.

This commit is contained in:
Haojun Liao 2023-06-15 17:56:58 +08:00
parent 74e0138f72
commit f3df37bf28
2 changed files with 3 additions and 0 deletions

View File

@ -176,6 +176,7 @@ void tFreeStreamObj(SStreamObj *pStream) {
}
taosArrayDestroy(pStream->tasks);
taosArrayDestroy(pStream->pHTasksList);
// tagSchema.pSchema
if (pStream->tagSchema.nCols > 0) {

View File

@ -2903,12 +2903,14 @@ void destroyStreamSessionAggOperatorInfo(void* param) {
}
taosArrayDestroy(pInfo->pChildren);
}
colDataDestroy(&pInfo->twAggSup.timeWindowData);
blockDataDestroy(pInfo->pDelRes);
blockDataDestroy(pInfo->pWinBlock);
blockDataDestroy(pInfo->pUpdateRes);
tSimpleHashCleanup(pInfo->pStDeleted);
taosArrayDestroy(pInfo->historyWins);
taosMemoryFreeClear(param);
}