Merge pull request #21308 from taosdata/fix/TD-24154

fix: fix null pointer issue in destroyTimesliceOperator
This commit is contained in:
dapan1121 2023-05-16 14:40:43 +08:00 committed by GitHub
commit a0d82ea74d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -894,8 +894,10 @@ void destroyTimeSliceOperatorInfo(void* param) {
} }
taosArrayDestroy(pInfo->pLinearInfo); taosArrayDestroy(pInfo->pLinearInfo);
taosMemoryFree(pInfo->pPrevGroupKey->pData); if (pInfo->pPrevGroupKey) {
taosMemoryFree(pInfo->pPrevGroupKey); taosMemoryFree(pInfo->pPrevGroupKey->pData);
taosMemoryFree(pInfo->pPrevGroupKey);
}
cleanupExprSupp(&pInfo->scalarSup); cleanupExprSupp(&pInfo->scalarSup);