fix double free issue

This commit is contained in:
dapan1121 2022-06-08 08:48:29 +08:00
parent 01a0194f4b
commit aecc8ce9bc
1 changed files with 3 additions and 1 deletions

View File

@ -48,10 +48,12 @@ void ctgFreeSMetaData(SMetaData* pData) {
taosArrayDestroy(pData->pTableMeta);
pData->pTableMeta = NULL;
/*
for (int32_t i = 0; i < taosArrayGetSize(pData->pDbVgroup); ++i) {
SArray** pArray = taosArrayGet(pData->pDbVgroup, i);
taosArrayDestroy(*pArray);
}
*/
taosArrayDestroy(pData->pDbVgroup);
pData->pDbVgroup = NULL;