BTRFS: Fix memory leak

Missing delete for some tree roots.

Signed-off-by: Augustin Cavalier <[email protected]>
This commit is contained in:
hyche
2017-12-10 11:02:55 -05:00
committed by Augustin Cavalier
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;