fix double free

This commit is contained in:
yihaoDeng 2024-03-13 05:56:13 +00:00
parent 7ab1197ca8
commit e72ddf9429
1 changed files with 3 additions and 0 deletions

View File

@ -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;