diff --git a/src/mnode/src/mgmtTable.c b/src/mnode/src/mgmtTable.c index 073251a7daf324a9759397115c7f379d8fec0928..181a46c01e8f426f5ef7ff5e391a0716a08374b2 100644 --- a/src/mnode/src/mgmtTable.c +++ b/src/mnode/src/mgmtTable.c @@ -431,8 +431,8 @@ static int32_t mgmtSuperTableActionUpdate(SSdbOper *pOper) { void *oldSchema = pTable->schema; memcpy(pTable, pNew, pOper->rowSize); pTable->schema = pNew->schema; - free(pNew); free(pNew->vgList); + free(pNew); free(oldSchema); }