diff options
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | grp/initgroups.c | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index 2fae7a4d5f..b526de8da5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2000-08-24 Ulrich Drepper <drepper@redhat.com> + * grp/initgroups.c (initgroups): Deallocate groups array. + Reported by jani.raiha@sonera.com [PR libc/1868]. + * sysdeps/s390/Dist: Add fpu/fenv_libc.h. * sysdeps/alpha/Dist: Likewise. diff --git a/grp/initgroups.c b/grp/initgroups.c index 54c37ed46c..6ae73687fe 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 } |