fix mem leak when open wal
This commit is contained in:
parent
e87ee24c11
commit
78a4cf4e90
|
@ -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