From 84364bf8610d89ead17ad09598c09966f40eab9d Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 24 Aug 2000 07:57:44 +0000 Subject: Update. * grp/initgroups.c (initgroups): Deallocate groups array. Reported by jani.raiha@sonera.com [PR libc/1868]. --- grp/initgroups.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'grp/initgroups.c') 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 } -- cgit v1.2.3-65-gdbad