mirror of
https://github.com/kdave/btrfs-progs
synced 2025-02-27 15:30:44 +00:00
btrfs-progs: close fd in qgroup show
It wasn't closed in the error path. Signed-off-by: Zach Brown <zab@redhat.com>
This commit is contained in:
parent
6ea327567f
commit
7b3f63be2c
@ -315,13 +315,12 @@ static int cmd_qgroup_show(int argc, char **argv)
|
||||
}
|
||||
|
||||
ret = list_qgroups(fd);
|
||||
close(fd);
|
||||
if (ret < 0) {
|
||||
fprintf(stderr, "ERROR: can't list qgroups\n");
|
||||
return 30;
|
||||
}
|
||||
|
||||
close(fd);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user