From e72ddf942942ff4ce7fec3a33e0c5b929258d3ee Mon Sep 17 00:00:00 2001 From: yihaoDeng Date: Wed, 13 Mar 2024 05:56:13 +0000 Subject: [PATCH] fix double free --- source/dnode/mnode/impl/src/mndIndex.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/dnode/mnode/impl/src/mndIndex.c b/source/dnode/mnode/impl/src/mndIndex.c index 622ed0080f..43d13ae602 100644 --- a/source/dnode/mnode/impl/src/mndIndex.c +++ b/source/dnode/mnode/impl/src/mndIndex.c @@ -596,6 +596,9 @@ static int32_t mndSetUpdateIdxStbCommitLogs(SMnode *pMnode, STrans *pTrans, SStb memcpy(pNew, pOld, sizeof(SStbObj)); taosRUnLockLatch(&pOld->lock); + pNew->pTags = NULL; + pNew->pColumns = NULL; + pNew->pTags = NULL; pNew->updateTime = taosGetTimestampMs(); pNew->lock = 0;