[TD-6343]<fix>: taos crash at tscSubquery.c:2447

This commit is contained in:
Ganlin Zhao 2021-08-25 15:53:03 +08:00
parent 6b652fa2c3
commit 51193750af
1 changed files with 1 additions and 1 deletions

View File

@ -2443,7 +2443,7 @@ static void doSendQueryReqs(SSchedMsg* pSchedMsg) {
SPair* p = pSchedMsg->msg;
for (int32_t i = p->first; i < p->second; ++i) {
if (i == pSql->subState.numOfSub) {
if (i >= pSql->subState.numOfSub) {
tfree(p);
return;
}