summaryrefslogtreecommitdiff
path: root/test/pwd_grp
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-07-23 13:27:05 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-07-23 13:27:05 +0200
commit05c69924b14d68027a90695a4d8da4ec70c9a886 (patch)
treeec4e39d49ea7758366dd6a8dc325f5965f1ba2af /test/pwd_grp
parenta9e2101d71d1d007bf8dec492bb6743cb58e2537 (diff)
testsuite: fix one bug, one warning; extend README (one TODO added)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'test/pwd_grp')
-rw-r--r--test/pwd_grp/getgroups.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/pwd_grp/getgroups.c b/test/pwd_grp/getgroups.c
index 0c093081a..5769b180b 100644
--- a/test/pwd_grp/getgroups.c
+++ b/test/pwd_grp/getgroups.c
@@ -53,7 +53,7 @@ static int xgetgroups(gid_t gid, int *n_groups, gid_t ** groups)
if (ng < 0) {
warn("cannot get supplemental group list");
++fail;
- free(groups);
+ free(g);
}
if (!fail) {
*n_groups = ng;