fix: memory leak

This commit is contained in:
slzhou 2024-02-04 16:57:48 +08:00
parent fa55a32e77
commit 8e0f578dba
1 changed files with 2 additions and 0 deletions

View File

@ -1112,6 +1112,8 @@ static int32_t destroySortMemFile(SSortHandle* pHandle) {
tSimpleHashCleanup(pMemFile->mActivePages);
taosMemoryFree(pMemFile->pageBuf);
taosCloseFile(&pMemFile->pTdFile);
taosMemoryFree(pMemFile);
pHandle->pExtRowsMemFile = NULL;
return TSDB_CODE_SUCCESS;
}