Merge pull request #27943 from taosdata/fix/TD-32162

fix: memory init issue
This commit is contained in:
Pan Wei 2024-09-19 10:20:06 +08:00 committed by GitHub
commit 9742c11039
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -697,7 +697,7 @@ static void freeStbJoinTableList(SStbJoinTableList* pList) {
static int32_t appendStbJoinTableList(SStbJoinPrevJoinCtx* pCtx, int64_t rows, int32_t* pLeftVg, int64_t* pLeftUid, int32_t* pRightVg, int64_t* pRightUid) {
int32_t code = TSDB_CODE_SUCCESS;
SStbJoinTableList* pNew = taosMemoryMalloc(sizeof(SStbJoinTableList));
SStbJoinTableList* pNew = taosMemoryCalloc(1, sizeof(SStbJoinTableList));
if (NULL == pNew) {
return terrno;
}