btrfs-progs: close fd in qgroup show

It wasn't closed in the error path.

Signed-off-by: Zach Brown <zab@redhat.com>
master
Zach Brown 2013-01-23 15:00:46 -08:00
parent 6ea327567f
commit 7b3f63be2c
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}