Merge pull request #27426 from taosdata/fix/ly_res

fix(query):fix mem leak for time slice operator
This commit is contained in:
dapan1121 2024-08-23 14:35:13 +08:00 committed by GitHub
commit f7df58bc00
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -1247,6 +1247,9 @@ void destroyTimeSliceOperatorInfo(void* param) {
taosMemoryFree(pInfo->pPrevGroupKey->pData);
taosMemoryFree(pInfo->pPrevGroupKey);
}
if (pInfo->hasPk && IS_VAR_DATA_TYPE(pInfo->pkCol.type)) {
taosMemoryFreeClear(pInfo->prevKey.pks[0].pData);
}
cleanupExprSupp(&pInfo->scalarSup);
if (pInfo->pFillColInfo != NULL) {