fix: free pointer issue

This commit is contained in:
dapan1121 2023-02-25 14:15:24 +08:00
parent 05bd600ef8
commit 10e35f1ed0
1 changed files with 2 additions and 2 deletions

View File

@ -312,8 +312,8 @@ static int32_t ensureBlockScanInfoBuf(SBlockInfoBuf* pBuf, int32_t numOfTables)
}
if (pBuf->numOfTables > 0) {
STableBlockScanInfo *p = (STableBlockScanInfo*)taosArrayPop(pBuf->pData);
taosMemoryFree(p);
STableBlockScanInfo **p = (STableBlockScanInfo**)taosArrayPop(pBuf->pData);
taosMemoryFree(*p);
pBuf->numOfTables /= pBuf->numPerBucket;
}