fix double free
This commit is contained in:
parent
7ab1197ca8
commit
e72ddf9429
|
@ -596,6 +596,9 @@ static int32_t mndSetUpdateIdxStbCommitLogs(SMnode *pMnode, STrans *pTrans, SStb
|
||||||
memcpy(pNew, pOld, sizeof(SStbObj));
|
memcpy(pNew, pOld, sizeof(SStbObj));
|
||||||
taosRUnLockLatch(&pOld->lock);
|
taosRUnLockLatch(&pOld->lock);
|
||||||
|
|
||||||
|
pNew->pTags = NULL;
|
||||||
|
pNew->pColumns = NULL;
|
||||||
|
|
||||||
pNew->pTags = NULL;
|
pNew->pTags = NULL;
|
||||||
pNew->updateTime = taosGetTimestampMs();
|
pNew->updateTime = taosGetTimestampMs();
|
||||||
pNew->lock = 0;
|
pNew->lock = 0;
|
||||||
|
|
Loading…
Reference in New Issue