forked from Mirrors/btrfs-progs
btrfs-progs: close fd in qgroup show
It wasn't closed in the error path. Signed-off-by: Zach Brown <zab@redhat.com>master
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