fix: memory leaks

This commit is contained in:
slzhou 2023-12-08 22:12:24 +08:00
parent 205e3ecf27
commit 92a695cd2f
1 changed files with 3 additions and 1 deletions

View File

@ -3525,7 +3525,9 @@ int32_t stopRowIdSort(STableMergeScanInfo *pInfo) {
taosCloseFile(&pSort->dataFile); taosCloseFile(&pSort->dataFile);
taosRemoveFile(pSort->dataPath); taosRemoveFile(pSort->dataPath);
taosLRUCacheEraseUnrefEntries(pSort->pBlkInfoCache);
taosLRUCacheCleanup(pSort->pBlkInfoCache); taosLRUCacheCleanup(pSort->pBlkInfoCache);
taosLRUCacheEraseUnrefEntries(pSort->pBlkDataCache);
taosLRUCacheCleanup(pSort->pBlkDataCache); taosLRUCacheCleanup(pSort->pBlkDataCache);
return 0; return 0;
} }