BTRFS: Fix memory leak
Missing delete for some tree roots. Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
This commit is contained in:
parent
0deb03560f
commit
8137f447cb
@ -439,12 +439,16 @@ status_t
|
||||
Volume::Unmount()
|
||||
{
|
||||
TRACE("Volume::Unmount()\n");
|
||||
delete fRootTree;
|
||||
delete fExtentTree;
|
||||
delete fChunkTree;
|
||||
delete fChecksumTree;
|
||||
delete fFSTree;
|
||||
delete fDevTree;
|
||||
delete fExtentAllocator;
|
||||
fRootTree = NULL;
|
||||
fExtentTree = NULL;
|
||||
fChunkTree = NULL;
|
||||
fChecksumTree = NULL;
|
||||
fFSTree = NULL;
|
||||
fDevTree = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user