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