BTRFS: Fix memory leak

Missing delete for some tree roots.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
This commit is contained in:
hyche 2017-08-21 00:36:07 +07:00 committed by Augustin Cavalier
parent 0deb03560f
commit 8137f447cb

View File

@ -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;