summaryrefslogtreecommitdiff
path: root/test/pwd_grp
diff options
context:
space:
mode:
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;