From 82b8d0ad7330517fb2ece97263d2020d241fdf46 Mon Sep 17 00:00:00 2001 From: Ganlin Zhao Date: Wed, 25 Aug 2021 15:53:03 +0800 Subject: [PATCH] [TD-6343]: taos crash at tscSubquery.c:2447 --- src/client/src/tscSubquery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/src/tscSubquery.c b/src/client/src/tscSubquery.c index 1fbe1c8d60..094b2ab621 100644 --- a/src/client/src/tscSubquery.c +++ b/src/client/src/tscSubquery.c @@ -2436,7 +2436,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; } -- GitLab