diff --git a/source/libs/executor/src/executorimpl.c b/source/libs/executor/src/executorimpl.c index 3034911872bb2526f267ea57fbd931012c4637ce..8058d6ee967215dad9233a81622bd5da0286ddab 100644 --- a/source/libs/executor/src/executorimpl.c +++ b/source/libs/executor/src/executorimpl.c @@ -3959,6 +3959,8 @@ static SSDataBlock* doApplyIndefinitFunction(SOperatorInfo* pOperator) { size_t rows = pInfo->pRes->info.rows; if (rows > 0 || pOperator->status == OP_EXEC_DONE) { break; + } else { + blockDataCleanup(pInfo->pRes); } }