diff --git a/source/client/src/clientStmt.c b/source/client/src/clientStmt.c index 53c151feeb2bc08b71906cb76f81a5b00e16c050..291e0f6ae31f52011ad0e42747a71efba39eaf5f 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);