Merge pull request #28083 from taosdata/fix/3.0/TD-32301

fix mem leak when open wal
This commit is contained in:
Hongze Cheng 2024-09-25 13:39:24 +08:00 committed by GitHub
commit 7273bd9219
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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);