summary refs log tree commit diff
path: root/grp/initgroups.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-08-24 07:57:44 +0000
committerUlrich Drepper <drepper@redhat.com>2000-08-24 07:57:44 +0000
commit84364bf8610d89ead17ad09598c09966f40eab9d (patch)
treec337c58e65471c74015b526ab1a33e1584372581 /grp/initgroups.c
parent80bae720f58247369f2dbb7d16ce6507936d2e94 (diff)
downloadglibc-84364bf8610d89ead17ad09598c09966f40eab9d.tar.gz
glibc-84364bf8610d89ead17ad09598c09966f40eab9d.tar.xz
glibc-84364bf8610d89ead17ad09598c09966f40eab9d.zip
Update.
	* grp/initgroups.c (initgroups): Deallocate groups array.
	Reported by jani.raiha@sonera.com [PR libc/1868].
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 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
 }