other: merge main.

This commit is contained in:
Haojun Liao 2023-05-20 15:09:30 +08:00
parent 10692fde5e
commit 6932c59510
1 changed files with 3 additions and 1 deletions

View File

@ -80,7 +80,9 @@ static int32_t streamTaskExecImpl(SStreamTask* pTask, SStreamQueueItem* pItem, i
SArray* pRes = NULL;
while (1) {
pRes = taosArrayInit(4, sizeof(SSDataBlock));
if (pRes == NULL) {
pRes = taosArrayInit(4, sizeof(SSDataBlock));
}
if (streamTaskShouldStop(&pTask->status)) {
taosArrayDestroy(pRes); // memory leak