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] memory leak in getpwuid()


http://sourceware.org/bugzilla/show_bug.cgi?id=14122

alois.schloegl at ist dot ac.at changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|unspecified                 |2.11

--- Comment #2 from alois.schloegl at ist dot ac.at 2012-05-19 21:46:52 UTC ---
My glibc built from the git repository is not working, and these results were
valid. Below are the results on my platform, using the glibc 2.11.1. 

==17631== HEAP SUMMARY:
==17631==     in use at exit: 300 bytes in 11 blocks
==17631==   total heap usage: 68 allocs, 57 frees, 9,898 bytes allocated
==17631== 
==17631== 300 (60 direct, 240 indirect) bytes in 1 blocks are definitely lost
in loss record 11 of 11
==17631==    at 0x4C274A8: malloc (vg_replace_malloc.c:236)
==17631==    by 0x4F27DCA: nss_parse_service_list (nsswitch.c:622)
==17631==    by 0x4F286ED: __nss_database_lookup (nsswitch.c:164)
==17631==    by 0x55B23CF: ???
==17631==    by 0x55B4244: ???
==17631==    by 0x4ED69FC: getpwuid_r@@GLIBC_2.2.5 (getXXbyYY_r.c:253)
==17631==    by 0x4ED62EE: getpwuid (getXXbyYY.c:117)
==17631==    by 0x40058C: main (in /tmp/a.out)
==17631== 
==17631== LEAK SUMMARY:
==17631==    definitely lost: 60 bytes in 1 blocks
==17631==    indirectly lost: 240 bytes in 10 blocks
==17631==      possibly lost: 0 bytes in 0 blocks
==17631==    still reachable: 0 bytes in 0 blocks
==17631==         suppressed: 0 bytes in 0 blocks
==17631== 
==17631== For counts of detected and suppressed errors, rerun with: -v
==17631== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 4 from 4)

-- 
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]