This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/14122] New: memory leak in getpwuid()


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]