From 315aad8834d1231a5653b2a28d5f64a49eaa64ea Mon Sep 17 00:00:00 2001 From: dapan1121 Date: Wed, 18 Sep 2024 18:36:21 +0800 Subject: [PATCH] fix: memory init issue --- source/libs/executor/src/dynqueryctrloperator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/libs/executor/src/dynqueryctrloperator.c b/source/libs/executor/src/dynqueryctrloperator.c index bf38a893e3..638536349d 100644 --- a/source/libs/executor/src/dynqueryctrloperator.c +++ b/source/libs/executor/src/dynqueryctrloperator.c @@ -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; }