diff --git a/src/system/detail/src/mgmtVgroup.c b/src/system/detail/src/mgmtVgroup.c index 15a5fe808b44c5cc3f94f06bb691a11aa8998122..fc1421432b11c1defd0205452703363e941bf4b8 100644 --- a/src/system/detail/src/mgmtVgroup.c +++ b/src/system/detail/src/mgmtVgroup.c @@ -412,8 +412,8 @@ void *mgmtVgroupActionUpdate(void *row, char *str, int size, int *ssize) { if (pDb->cfg.maxSessions != oldTables) { mPrint("vgroup:%d tables change from %d to %d", pVgroup->vgId, oldTables, pDb->cfg.maxSessions); taosUpdateIdPool(pVgroup->idPool, pDb->cfg.maxSessions); - int size = sizeof(STabObj *) * pDb->cfg.maxSessions; - pVgroup->meterList = (STabObj **)realloc(pVgroup->meterList, size); + int tabsize = sizeof(STabObj *) * pDb->cfg.maxSessions; + pVgroup->meterList = (STabObj **)realloc(pVgroup->meterList, tabsize); } }