fix:[TD-32727] set SArray pointer to NULL after destroy.
This commit is contained in:
parent
412c20968e
commit
135adabd98
|
@ -675,11 +675,13 @@ static int32_t initGroupKeyKeeper(STimeSliceOperatorInfo* pInfo, SExprSupp* pExp
|
||||||
.pData = taosMemoryCalloc(1, pExprInfo->base.resSchema.bytes)};
|
.pData = taosMemoryCalloc(1, pExprInfo->base.resSchema.bytes)};
|
||||||
if (!key.pData) {
|
if (!key.pData) {
|
||||||
taosArrayDestroyEx(pInfo->pPrevGroupKeys, destroyGroupKey);
|
taosArrayDestroyEx(pInfo->pPrevGroupKeys, destroyGroupKey);
|
||||||
|
pInfo->pPrevGroupKeys = NULL;
|
||||||
return terrno;
|
return terrno;
|
||||||
}
|
}
|
||||||
if (NULL == taosArrayPush(pInfo->pPrevGroupKeys, &key)) {
|
if (NULL == taosArrayPush(pInfo->pPrevGroupKeys, &key)) {
|
||||||
taosMemoryFree(key.pData);
|
taosMemoryFree(key.pData);
|
||||||
taosArrayDestroyEx(pInfo->pPrevGroupKeys, destroyGroupKey);
|
taosArrayDestroyEx(pInfo->pPrevGroupKeys, destroyGroupKey);
|
||||||
|
pInfo->pPrevGroupKeys = NULL;
|
||||||
return terrno;
|
return terrno;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue