From 0cc681aa888d8d08d06c6d08e45865d9a4a379f7 Mon Sep 17 00:00:00 2001 From: Shuduo Sang Date: Wed, 29 Apr 2020 13:09:17 +0800 Subject: [PATCH] fix read from pointer after free in mgmtTable.c --- src/mnode/src/mgmtTable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mnode/src/mgmtTable.c b/src/mnode/src/mgmtTable.c index 57e905361c..0776cb5dd7 100644 --- a/src/mnode/src/mgmtTable.c +++ b/src/mnode/src/mgmtTable.c @@ -430,8 +430,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); } -- GitLab