summaryrefslogtreecommitdiff
path: root/qgroup.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2018-02-15 18:13:35 +0100
committerDavid Sterba <dsterba@suse.com>2018-02-16 16:59:42 +0100
commit7bb936f382d6948c8b7a4f9d8783644868351974 (patch)
tree33a98258db2751fd1bcd4528a338c65d4175c4a9 /qgroup.c
parentb8e884f1cda145c73115e2ff9dde096d39e199ca (diff)
btrfs-progs: let callers of btrfs_show_qgroups free the buffers
btrfs_show_qgroups frees the filter and comparer in case it succeeds. This makes the caller slightly more complicated so move the freeing up one level. Issue: #20 Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'qgroup.c')
-rw-r--r--qgroup.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/qgroup.c b/qgroup.c
index b5b893f4..11659e83 100644
--- a/qgroup.c
+++ b/qgroup.c
@@ -1192,8 +1192,6 @@ int btrfs_show_qgroups(int fd,
print_all_qgroups(&sort_tree);
__free_all_qgroups(&qgroup_lookup);
- free(filter_set);
- free(comp_set);
return ret;
}