From 10692fde5e7375b63fcf106d69b9088db84e2684 Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Sat, 20 May 2023 14:53:28 +0800 Subject: [PATCH] other: merge main. --- source/libs/stream/src/streamExec.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/libs/stream/src/streamExec.c b/source/libs/stream/src/streamExec.c index 77bac6cee7..a9c8ffca0c 100644 --- a/source/libs/stream/src/streamExec.c +++ b/source/libs/stream/src/streamExec.c @@ -77,9 +77,11 @@ static int32_t streamTaskExecImpl(SStreamTask* pTask, SStreamQueueItem* pItem, i int32_t size = 0; int32_t numOfBlocks = 0; - SArray* pRes = taosArrayInit(0, sizeof(SSDataBlock)); + SArray* pRes = NULL; while (1) { + pRes = taosArrayInit(4, sizeof(SSDataBlock)); + if (streamTaskShouldStop(&pTask->status)) { taosArrayDestroy(pRes); // memory leak return 0;