Bug 17741

Summary: memory leak in initgroups()
Product: [Retired] Red Hat Linux Reporter: Mike Gleason <mgleason>
Component: glibcAssignee: Jakub Jelinek <jakub>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: 6.2   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-09-20 09:16:39 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Mike Gleason 2000-09-20 09:16:38 UTC
line 167 of grp/initgroups.c:

groups = malloc (size * sizeof (gid_t *));

This local pointer does not appear to be free()d.  Long-lived processes 
may initgroups() multiple times, and leaks some memory each time.

Comment 1 Jakub Jelinek 2000-09-22 11:51:40 UTC
Fixed in glibc 2.1.9x.