[td-225] fix a memory leak in query.

This commit is contained in:
Haojun Liao 2020-09-17 21:46:28 +08:00
parent bd725f1b53
commit 079cd0e010
1 changed files with 2 additions and 0 deletions

View File

@ -2085,6 +2085,8 @@ STimeWindow changeTableGroupByLastrow(STableGroupInfo *groupList) {
totalNumOfTable++;
taosArrayPush(pGroup, &keyInfo);
} else {
taosArrayDestroy(pGroup);
taosArrayRemove(groupList->pGroupList, j);
numOfGroups -= 1;
j -= 1;