btrfs-progs: Fix 2 extent buffer leak in btrfs-debug-tree
authorQu Wenruo <quwenruo@cn.fujitsu.com>
Wed, 11 Feb 2015 01:57:17 +0000 (09:57 +0800)
committerDavid Sterba <dsterba@suse.cz>
Wed, 11 Feb 2015 18:08:43 +0000 (19:08 +0100)
commitd09504edb148336893d2a67c4cceb09b640ade14
treead1e7048b3e0ba2fce722d2965d9b5c7d5ffbeaf
parenta1231346d67d8ae0e4aa5dd80818dcbda2336ed9
btrfs-progs: Fix 2 extent buffer leak in btrfs-debug-tree

There are 2 known extent buffer leaks:
1) With -t option.
-t option will skip other tree roots, but it will read the root node
first and then skip it.
Where it forgets to free the tree block it read.

2) with -b option.
It forgets to free the tree block it read.

Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
btrfs-debug-tree.c