From 079cd0e010fa8ed0410ddb63b3b9246fdd7e2760 Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Thu, 17 Sep 2020 21:46:28 +0800 Subject: [PATCH] [td-225] fix a memory leak in query. --- src/tsdb/src/tsdbRead.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tsdb/src/tsdbRead.c b/src/tsdb/src/tsdbRead.c index b18f45fca6..a3bc0de272 100644 --- a/src/tsdb/src/tsdbRead.c +++ b/src/tsdb/src/tsdbRead.c @@ -2085,6 +2085,8 @@ STimeWindow changeTableGroupByLastrow(STableGroupInfo *groupList) { totalNumOfTable++; taosArrayPush(pGroup, &keyInfo); } else { + taosArrayDestroy(pGroup); + taosArrayRemove(groupList->pGroupList, j); numOfGroups -= 1; j -= 1; -- GitLab