other: merge main.

This commit is contained in:
Haojun Liao 2023-05-20 14:53:28 +08:00
parent afc384bead
commit 10692fde5e
1 changed files with 3 additions and 1 deletions

View File

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