From 8daa8f352593998ab32caf9e93ece587bd0cbbdc Mon Sep 17 00:00:00 2001 From: dapan1121 Date: Mon, 28 Nov 2022 19:04:15 +0800 Subject: [PATCH] fix: fix table meta memory leak issue --- source/client/src/clientStmt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/client/src/clientStmt.c b/source/client/src/clientStmt.c index 53c151feeb..291e0f6ae3 100644 --- a/source/client/src/clientStmt.c +++ b/source/client/src/clientStmt.c @@ -842,11 +842,13 @@ int stmtUpdateTableUid(STscStmt* pStmt, SSubmitRsp* pRsp) { if (code || NULL == pTableMeta) { pIter = taosHashIterate(pStmt->exec.pBlockHash, pIter); finalCode = code; + taosMemoryFree(pTableMeta); continue; } pMeta->uid = pTableMeta->uid; pStmt->bInfo.tbUid = pTableMeta->uid; + taosMemoryFree(pTableMeta); } pIter = taosHashIterate(pStmt->exec.pBlockHash, pIter); -- GitLab