summaryrefslogtreecommitdiff
path: root/btrfs-map-logical.c
diff options
context:
space:
mode:
authorZhao Lei <zhaolei@cn.fujitsu.com>2015-10-26 18:28:20 +0800
committerDavid Sterba <dsterba@suse.com>2015-11-02 09:35:08 +0100
commite72cb5de1211cedc0af2fd9ea4d7535d35c34f76 (patch)
tree2ff8eb1321dda81479addd3c648976484bb05016 /btrfs-map-logical.c
parentda34dbd14936a4c6183be14b7db09f0d6e49cf09 (diff)
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>
Diffstat (limited to 'btrfs-map-logical.c')
-rw-r--r--btrfs-map-logical.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/btrfs-map-logical.c b/btrfs-map-logical.c
index d9fa6b29..0161b5c6 100644
--- a/btrfs-map-logical.c
+++ b/btrfs-map-logical.c
@@ -359,5 +359,6 @@ close:
close_ctree(root);
if (ret < 0)
ret = 1;
+ btrfs_close_all_devices();
return ret;
}