This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/14122] New: memory leak in getpwuid()
- From: "alois.schloegl at ist dot ac.at" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Fri, 18 May 2012 20:30:07 +0000
- Subject: [Bug libc/14122] New: memory leak in getpwuid()
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=14122
Bug #: 14122
Summary: memory leak in getpwuid()
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: unassigned@sourceware.org
ReportedBy: alois.schloegl@ist.ac.at
CC: alois.schloegl@ist.ac.at, drepper.fsp@gmail.com
Classification: Unclassified
Host: linux
Target: linux
Build: linux
When calling getpwuid(), a memory leak of 60 bytes is reported by valgrind.
This is consistently reported on on debian squeeze, ubuntu 10.04, and when
compiling and linking with the the latest glibc (git commit
e6bdb741d11a5c408f1f162b4d649b93d8012ec9).
Here is a minimal program for testing.
#include <pwd.h>
main() {
struct passwd *q = getpwuid(geteuid());
}
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.