diff options
author | Filipe David Borba Manana <fdmanana@gmail.com> | 2013-06-10 20:51:33 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2013-08-09 14:32:30 +0200 |
commit | 76dabfb64fe779f630259744a2c88fbd0884b79f (patch) | |
tree | 6009ac2b4bcb9950ca91781bc29d6c722316cd3c /btrfs-debug-tree.c | |
parent | 336be4a55f48eb76f190a94b5aa0d07d2e5895d5 (diff) | |
download | btrfs-progs-76dabfb64fe779f630259744a2c88fbd0884b79f.tar.gz |
Btrfs-progs: Add missing close_ctree() calls to debug-tree
Signed-off-by: Filipe David Borba Manana <fdmanana@gmail.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'btrfs-debug-tree.c')
-rw-r--r-- | btrfs-debug-tree.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/btrfs-debug-tree.c b/btrfs-debug-tree.c index 97459b1..74d4d66 100644 --- a/btrfs-debug-tree.c +++ b/btrfs-debug-tree.c @@ -195,10 +195,10 @@ int main(int ac, char **av) if (!leaf) { fprintf(stderr, "failed to read %llu\n", (unsigned long long)block_only); - return 0; + goto close_root; } btrfs_print_tree(root, leaf, 0); - return 0; + goto close_root; } if (!extent_only) { @@ -370,7 +370,7 @@ no_node: } if (extent_only || device_only) - return 0; + goto close_root; if (root_backups) print_old_roots(info->super_copy); @@ -383,5 +383,6 @@ no_node: uuid_unparse(info->super_copy->fsid, uuidbuf); printf("uuid %s\n", uuidbuf); printf("%s\n", BTRFS_BUILD_VERSION); - return 0; +close_root: + return close_ctree(root); } |