fix mem leak when open wal

This commit is contained in:
xiao-77 2024-09-24 18:33:52 +08:00
parent e87ee24c11
commit 78a4cf4e90
1 changed files with 1 additions and 0 deletions

View File

@ -189,6 +189,7 @@ SWal *walOpen(const char *path, SWalCfg *pCfg) {
_err:
taosArrayDestroy(pWal->fileInfoSet);
taosArrayDestroy(pWal->toDeleteFiles);
taosHashCleanup(pWal->pRefHash);
TAOS_UNUSED(taosThreadRwlockDestroy(&pWal->mutex));
taosMemoryFreeClear(pWal);