fix mem leak
This commit is contained in:
parent
bcba018324
commit
41220ef3db
|
@ -1247,9 +1247,8 @@ void destroyTimeSliceOperatorInfo(void* param) {
|
|||
taosMemoryFree(pInfo->pPrevGroupKey->pData);
|
||||
taosMemoryFree(pInfo->pPrevGroupKey);
|
||||
}
|
||||
if (pInfo->hasPk) {
|
||||
if (pInfo->hasPk && IS_VAR_DATA_TYPE(pInfo->pkCol.type)) {
|
||||
taosMemoryFreeClear(pInfo->prevKey.pks[0].pData);
|
||||
taosMemoryFreeClear(pInfo->prevKey.pks[1].pData);
|
||||
}
|
||||
|
||||
cleanupExprSupp(&pInfo->scalarSup);
|
||||
|
|
Loading…
Reference in New Issue