提交 10692fde 编写于 作者: H Haojun Liao

other: merge main.

上级 afc384be
...@@ -77,9 +77,11 @@ static int32_t streamTaskExecImpl(SStreamTask* pTask, SStreamQueueItem* pItem, i ...@@ -77,9 +77,11 @@ static int32_t streamTaskExecImpl(SStreamTask* pTask, SStreamQueueItem* pItem, i
int32_t size = 0; int32_t size = 0;
int32_t numOfBlocks = 0; int32_t numOfBlocks = 0;
SArray* pRes = taosArrayInit(0, sizeof(SSDataBlock)); SArray* pRes = NULL;
while (1) { while (1) {
pRes = taosArrayInit(4, sizeof(SSDataBlock));
if (streamTaskShouldStop(&pTask->status)) { if (streamTaskShouldStop(&pTask->status)) {
taosArrayDestroy(pRes); // memory leak taosArrayDestroy(pRes); // memory leak
return 0; return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册