Bug 17741 - memory leak in initgroups()
memory leak in initgroups()
Product: Red Hat Linux
Classification: Retired
Component: glibc (Show other bugs)
All Linux
low Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
Depends On:
  Show dependency treegraph
Reported: 2000-09-20 05:16 EDT by Mike Gleason
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2000-09-20 05:16:39 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Mike Gleason 2000-09-20 05:16:38 EDT
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 07:51:40 EDT
Fixed in glibc 2.1.9x.

Note You need to log in before you can comment on or make changes to this bug.