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:
|
_err:
|
||||||
taosArrayDestroy(pWal->fileInfoSet);
|
taosArrayDestroy(pWal->fileInfoSet);
|
||||||
|
taosArrayDestroy(pWal->toDeleteFiles);
|
||||||
taosHashCleanup(pWal->pRefHash);
|
taosHashCleanup(pWal->pRefHash);
|
||||||
TAOS_UNUSED(taosThreadRwlockDestroy(&pWal->mutex));
|
TAOS_UNUSED(taosThreadRwlockDestroy(&pWal->mutex));
|
||||||
taosMemoryFreeClear(pWal);
|
taosMemoryFreeClear(pWal);
|
||||||
|
|
Loading…
Reference in New Issue