fix: memory init issue

This commit is contained in:
dapan1121 2024-09-18 18:36:21 +08:00
parent 53116ff508
commit 315aad8834
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) { 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; int32_t code = TSDB_CODE_SUCCESS;
SStbJoinTableList* pNew = taosMemoryMalloc(sizeof(SStbJoinTableList)); SStbJoinTableList* pNew = taosMemoryCalloc(1, sizeof(SStbJoinTableList));
if (NULL == pNew) { if (NULL == pNew) {
return terrno; return terrno;
} }