fix: memory leak
This commit is contained in:
parent
fa55a32e77
commit
8e0f578dba
|
@ -1112,6 +1112,8 @@ static int32_t destroySortMemFile(SSortHandle* pHandle) {
|
||||||
tSimpleHashCleanup(pMemFile->mActivePages);
|
tSimpleHashCleanup(pMemFile->mActivePages);
|
||||||
taosMemoryFree(pMemFile->pageBuf);
|
taosMemoryFree(pMemFile->pageBuf);
|
||||||
taosCloseFile(&pMemFile->pTdFile);
|
taosCloseFile(&pMemFile->pTdFile);
|
||||||
|
taosMemoryFree(pMemFile);
|
||||||
|
pHandle->pExtRowsMemFile = NULL;
|
||||||
return TSDB_CODE_SUCCESS;
|
return TSDB_CODE_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue