btrfs-progs: Add all missing btrfs_close_all_devices to standalone tools
authorZhao Lei <zhaolei@cn.fujitsu.com>
Mon, 26 Oct 2015 10:28:20 +0000 (18:28 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 2 Nov 2015 08:35:08 +0000 (09:35 +0100)
commite72cb5de1211cedc0af2fd9ea4d7535d35c34f76
tree2ff8eb1321dda81479addd3c648976484bb05016
parentda34dbd14936a4c6183be14b7db09f0d6e49cf09
btrfs-progs: Add all missing btrfs_close_all_devices to standalone tools

This patch add all missing btrfs_close_all_devices() to standalone
tools in btrfs progs, to avoid memory leak.

Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
btrfs-calc-size.c
btrfs-debug-tree.c
btrfs-find-root.c
btrfs-map-logical.c
btrfs-select-super.c
btrfstune.c