diff options
Diffstat (limited to 'cmds-filesystem.c')
-rw-r--r-- | cmds-filesystem.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cmds-filesystem.c b/cmds-filesystem.c index dfbb4f50..fbf2e10b 100644 --- a/cmds-filesystem.c +++ b/cmds-filesystem.c @@ -656,6 +656,12 @@ devs_only: if (search && !found) ret = 1; + while (!list_empty(all_uuids)) { + fs_devices = list_entry(all_uuids->next, + struct btrfs_fs_devices, list); + list_del(&fs_devices->list); + btrfs_close_devices(fs_devices); + } out: printf("%s\n", BTRFS_BUILD_VERSION); free_seen_fsid(); |