fix: fix multithread issue in destroyTimesliceOperator

This commit is contained in:
Ganlin Zhao 2023-05-15 17:55:37 +08:00
parent 64912707d2
commit 23c1aa2db0
1 changed files with 4 additions and 2 deletions

View File

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