提交 f3df37bf 编写于 作者: H Haojun Liao

fix(stream): fix memory leak.

上级 74e0138f
...@@ -176,6 +176,7 @@ void tFreeStreamObj(SStreamObj *pStream) { ...@@ -176,6 +176,7 @@ void tFreeStreamObj(SStreamObj *pStream) {
} }
taosArrayDestroy(pStream->tasks); taosArrayDestroy(pStream->tasks);
taosArrayDestroy(pStream->pHTasksList);
// tagSchema.pSchema // tagSchema.pSchema
if (pStream->tagSchema.nCols > 0) { if (pStream->tagSchema.nCols > 0) {
......
...@@ -2903,12 +2903,14 @@ void destroyStreamSessionAggOperatorInfo(void* param) { ...@@ -2903,12 +2903,14 @@ void destroyStreamSessionAggOperatorInfo(void* param) {
} }
taosArrayDestroy(pInfo->pChildren); taosArrayDestroy(pInfo->pChildren);
} }
colDataDestroy(&pInfo->twAggSup.timeWindowData); colDataDestroy(&pInfo->twAggSup.timeWindowData);
blockDataDestroy(pInfo->pDelRes); blockDataDestroy(pInfo->pDelRes);
blockDataDestroy(pInfo->pWinBlock); blockDataDestroy(pInfo->pWinBlock);
blockDataDestroy(pInfo->pUpdateRes); blockDataDestroy(pInfo->pUpdateRes);
tSimpleHashCleanup(pInfo->pStDeleted); tSimpleHashCleanup(pInfo->pStDeleted);
taosArrayDestroy(pInfo->historyWins);
taosMemoryFreeClear(param); taosMemoryFreeClear(param);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册