aboutsummaryrefslogtreecommitdiff
path: root/grp/initgroups.c
diff options
context:
space:
mode:
Diffstat (limited to 'grp/initgroups.c')
-rw-r--r--grp/initgroups.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/grp/initgroups.c b/grp/initgroups.c
index 54c37ed..6ae7368 100644
--- a/grp/initgroups.c
+++ b/grp/initgroups.c
@@ -225,6 +225,8 @@ initgroups (user, group)
result = setgroups (start, groups);
while (result == -1 && errno == EINVAL && --start > 0);
+ free (groups);
+
return result;
#endif
}