[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++; totalNumOfTable++;
taosArrayPush(pGroup, &keyInfo); taosArrayPush(pGroup, &keyInfo);
} else { } else {
taosArrayDestroy(pGroup);
taosArrayRemove(groupList->pGroupList, j); taosArrayRemove(groupList->pGroupList, j);
numOfGroups -= 1; numOfGroups -= 1;
j -= 1; j -= 1;