release row buff pos
This commit is contained in:
parent
0c4040b48e
commit
1f523abff5
|
@ -373,8 +373,11 @@ void clearGroupResInfo(SGroupResInfo* pGroupResInfo) {
|
||||||
if (pGroupResInfo->freeItem) {
|
if (pGroupResInfo->freeItem) {
|
||||||
int32_t size = taosArrayGetSize(pGroupResInfo->pRows);
|
int32_t size = taosArrayGetSize(pGroupResInfo->pRows);
|
||||||
for (int32_t i = pGroupResInfo->index; i < size; i++) {
|
for (int32_t i = pGroupResInfo->index; i < size; i++) {
|
||||||
void* pVal = taosArrayGetP(pGroupResInfo->pRows, i);
|
SRowBuffPos* pPos = taosArrayGetP(pGroupResInfo->pRows, i);
|
||||||
taosMemoryFree(pVal);
|
if (!pPos->needFree && !pPos->pRowBuff) {
|
||||||
|
taosMemoryFreeClear(pPos->pKey);
|
||||||
|
taosMemoryFree(pPos);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
pGroupResInfo->freeItem = false;
|
pGroupResInfo->freeItem = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue