From 8500d95e6d30d8a217b0c82c93f18eb1179c8170 Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Mon, 10 Mar 2025 13:32:04 +0800 Subject: [PATCH] fix(tmq): double free --- source/dnode/mnode/impl/src/mndStb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/dnode/mnode/impl/src/mndStb.c b/source/dnode/mnode/impl/src/mndStb.c index 157e790f36..6101ee9d50 100644 --- a/source/dnode/mnode/impl/src/mndStb.c +++ b/source/dnode/mnode/impl/src/mndStb.c @@ -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;