diff options
Diffstat (limited to 'cmds-qgroup.c')
-rw-r--r-- | cmds-qgroup.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cmds-qgroup.c b/cmds-qgroup.c index 0ad99f48..a64b7167 100644 --- a/cmds-qgroup.c +++ b/cmds-qgroup.c @@ -348,8 +348,11 @@ static int cmd_qgroup_show(int argc, char **argv) path = argv[optind]; fd = btrfs_open_dir(path, &dirstream, 1); - if (fd < 0) + if (fd < 0) { + btrfs_qgroup_free_filter_set(filter_set); + btrfs_qgroup_free_comparer_set(comparer_set); return 1; + } if (filter_flag) { qgroupid = btrfs_get_path_rootid(fd); |