Merge pull request #28083 from taosdata/fix/3.0/TD-32301
fix mem leak when open wal
This commit is contained in:
commit
7273bd9219
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue