From e72cb5de1211cedc0af2fd9ea4d7535d35c34f76 Mon Sep 17 00:00:00 2001 From: Zhao Lei Date: Mon, 26 Oct 2015 18:28:20 +0800 Subject: 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 Signed-off-by: David Sterba --- btrfstune.c | 1 + 1 file changed, 1 insertion(+) (limited to 'btrfstune.c') 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; } -- cgit v1.2.3