fix: fix memory leak of fill operator

This commit is contained in:
shenglian zhou 2022-07-26 19:19:24 +08:00
parent 56f067229c
commit 633542914b
1 changed files with 8 additions and 1 deletions

View File

@ -514,8 +514,15 @@ void* taosDestroyFillInfo(SFillInfo* pFillInfo) {
if (pFillInfo == NULL) {
return NULL;
}
taosMemoryFree(pFillInfo->prev->pData);
for (int32_t i = 0; i < taosArrayGetSize(pFillInfo->prev); ++i) {
SGroupKeys* pKey = taosArrayGet(pFillInfo->prev, i);
taosMemoryFree(pKey->pData);
}
taosArrayDestroy(pFillInfo->prev);
for (int32_t i = 0; i < taosArrayGetSize(pFillInfo->next); ++i) {
SGroupKeys* pKey = taosArrayGet(pFillInfo->next, i);
taosMemoryFree(pKey->pData);
}
taosArrayDestroy(pFillInfo->next);
for (int32_t i = 0; i < pFillInfo->numOfTags; ++i) {