btrfs-progs: image: close all_devices at the end

Devices opened by check_mounted() in main() should closed before
the exit of btrfs-image.

Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
Zhao Lei 2015-09-09 21:32:23 +08:00 committed by David Sterba
parent de554435e8
commit d17313dd4b

View File

@ -2881,5 +2881,7 @@ out:
}
}
btrfs_close_all_devices();
return !!ret;
}