fix(tmq): invalid free

This commit is contained in:
Liu Jicong 2022-07-08 21:45:31 +08:00
parent 8d01ae00cb
commit eb005b9d10
1 changed files with 2 additions and 2 deletions

View File

@ -1225,8 +1225,8 @@ static SSDataBlock* doStreamScan(SOperatorInfo* pOperator) {
/*pTaskInfo->streamInfo.lastStatus = ret.offset;*/ /*pTaskInfo->streamInfo.lastStatus = ret.offset;*/
if (pInfo->pRes->info.rows > 0) { if (pInfo->pRes->info.rows > 0) {
return pInfo->pRes; return pInfo->pRes;
} else { /*} else {*/
tDeleteSSDataBlock(&ret.data); /*tDeleteSSDataBlock(&ret.data);*/
} }
} else if (ret.fetchType == FETCH_TYPE__META) { } else if (ret.fetchType == FETCH_TYPE__META) {
ASSERT(0); ASSERT(0);