fix(tmq): double free

This commit is contained in:
wangmm0220 2025-03-10 13:32:04 +08:00 committed by wangjiaming0909
parent 07007ac96d
commit 8500d95e6d
1 changed files with 1 additions and 1 deletions

View File

@ -428,7 +428,7 @@ static int32_t mndStbActionUpdate(SSdb *pSdb, SStbObj *pOld, SStbObj *pNew) {
if (pOld->ast2Len < pNew->ast2Len) {
void *pAst2 = taosMemoryMalloc(pNew->ast2Len + 1);
if (pAst2 == NULL) {
goto END
goto END;
}
taosMemoryFree(pOld->pAst2);
pOld->pAst2 = pAst2;