summaryrefslogtreecommitdiff
path: root/btrfstune.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 /btrfstune.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 'btrfstune.c')
-rw-r--r--btrfstune.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/btrfstune.c b/btrfstune.c
index c248ee6b..0907aa9e 100644
--- a/btrfstune.c
+++ b/btrfstune.c
@@ -548,6 +548,7 @@ int main(int argc, char *argv[])
}
out:
close_ctree(root);
+ btrfs_close_all_devices();
return ret;
}