Skip to content

Commit

Permalink
Merge pull request #28257 from taosdata/fix/TD-32449
Browse files Browse the repository at this point in the history
fix double free
  • Loading branch information
hzcheng authored Oct 9, 2024
2 parents 005e243 + 4d482d8 commit 59306c3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/dnode/mnode/impl/src/mndIndex.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ static void *mndBuildDropIdxReq(SMnode *pMnode, SVgObj *pVgroup, SStbObj *pStbOb
pHead->contLen = htonl(len);
pHead->vgId = htonl(pVgroup->vgId);

void *pBuf = POINTER_SHIFT(pHead, sizeof(SMsgHead));
void *pBuf = POINTER_SHIFT(pHead, sizeof(SMsgHead));
int32_t ret = 0;
if ((ret = tSerializeSDropIdxReq(pBuf, len - sizeof(SMsgHead), &req)) < 0) {
terrno = ret;
Expand Down Expand Up @@ -662,6 +662,8 @@ static int32_t mndSetUpdateIdxStbCommitLogs(SMnode *pMnode, STrans *pTrans, SStb

pNew->pTags = NULL;
pNew->pColumns = NULL;
pNew->pCmpr = NULL;
pNew->pTags = NULL;
pNew->updateTime = taosGetTimestampMs();
pNew->lock = 0;

Expand Down

0 comments on commit 59306c3

Please sign in to comment.