fix: memory leak

This commit is contained in:
kailixu 2023-10-27 14:36:01 +08:00
parent 2ad3b98344
commit dc8cb7a99e
1 changed files with 5 additions and 1 deletions

View File

@ -95,7 +95,11 @@ static int32_t mndTransValidatePrepareAction(SMnode *pMnode, STrans *pTrans, STr
}
_OUT:
taosMemoryFreeClear(pRow);
if (pRow) {
SdbDeleteFp deleteFp = pSdb->deleteFps[pRaw->type];
if (deleteFp) (*deleteFp)(pSdb, pRow->pObj, false);
taosMemoryFreeClear(pRow);
}
return code;
}