projects
/
platform
/
upstream
/
btrfs-progs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ea3275
)
btrfs-progs: close fd in qgroup show
author
Zach Brown
<zab@redhat.com>
Wed, 23 Jan 2013 23:00:46 +0000
(15:00 -0800)
committer
Zach Brown
<zab@redhat.com>
Wed, 6 Feb 2013 00:09:40 +0000
(16:09 -0800)
It wasn't closed in the error path.
Signed-off-by: Zach Brown <zab@redhat.com>
cmds-qgroup.c
patch
|
blob
|
history
diff --git
a/cmds-qgroup.c
b/cmds-qgroup.c
index
085881f
..
26f0ab0
100644
(file)
--- a/
cmds-qgroup.c
+++ b/
cmds-qgroup.c
@@
-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;
}