summaryrefslogtreecommitdiff
path: root/cmds-subvolume.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2016-09-06 15:30:31 +0200
committerDavid Sterba <dsterba@suse.com>2016-09-21 14:12:38 +0200
commitc027c1353145f521999963c218682c42475cd97a (patch)
treefccc831a028a47a2a690be427c74f1d9020beec4 /cmds-subvolume.c
parent8a167ec579997cb9e8204b3b4033dd99cbdbd3b8 (diff)
btrfs-progs: remove trivial helpers for filtering functions
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'cmds-subvolume.c')
-rw-r--r--cmds-subvolume.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/cmds-subvolume.c b/cmds-subvolume.c
index b3f7cbc..bcfe5ed 100644
--- a/cmds-subvolume.c
+++ b/cmds-subvolume.c
@@ -580,9 +580,9 @@ static int cmd_subvol_list(int argc, char **argv)
out:
close_file_or_dir(fd, dirstream);
if (filter_set)
- btrfs_list_free_filter_set(filter_set);
+ free(filter_set);
if (comparer_set)
- btrfs_list_free_comparer_set(comparer_set);
+ free(comparer_set);
if (uerr)
usage(cmd_subvol_list_usage);
return !!ret;
@@ -803,7 +803,7 @@ static int cmd_subvol_get_default(int argc, char **argv)
BTRFS_LIST_LAYOUT_DEFAULT, 1, NULL);
if (filter_set)
- btrfs_list_free_filter_set(filter_set);
+ free(filter_set);
out:
close_file_or_dir(fd, dirstream);
return !!ret;
@@ -1011,7 +1011,7 @@ out:
free(get_ri.path);
free(get_ri.name);
free(get_ri.full_path);
- btrfs_list_free_filter_set(filter_set);
+ free(filter_set);
close_file_or_dir(fd, dirstream1);
free(fullpath);