mirror of
https://github.com/kdave/btrfs-progs
synced 2025-02-28 07:50:32 +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);
|
ret = list_qgroups(fd);
|
||||||
|
close(fd);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
fprintf(stderr, "ERROR: can't list qgroups\n");
|
fprintf(stderr, "ERROR: can't list qgroups\n");
|
||||||
return 30;
|
return 30;
|
||||||
}
|
}
|
||||||
|
|
||||||
close(fd);
|
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user