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 nss/22184] Memory leak(s) in getaddrinfo_a


https://sourceware.org/bugzilla/show_bug.cgi?id=22184

--- Comment #3 from Tim Rühsen <tim.ruehsen at gmx dot de> ---
(In reply to Carlos O'Donell from comment #1)
> Are you able to try reproducing this with glibc master or 2.26? Both have
> some cleanups in this area.

Just checked with current master.
CFLAGS="-O1 -g" ../configure --prefix=/usr/tim/src/glibc/myinstall
--disable-werror
make
make install
gcc -I../myinstall/include gai_leak.c -o gai_leak -L../myinstall/lib
../myinstall/lib/libanl.so ../myinstall/lib/libc.so
../myinstall/lib/libpthread.so
valgrind ./gai_leak

...
==29332==     in use at exit: 2,440 bytes in 5 blocks
==29332==   total heap usage: 74 allocs, 69 frees, 104,809 bytes allocated
==29332== 
==29332== LEAK SUMMARY:
==29332==    definitely lost: 0 bytes in 0 blocks
==29332==    indirectly lost: 0 bytes in 0 blocks
==29332==      possibly lost: 272 bytes in 1 blocks
==29332==    still reachable: 2,168 bytes in 4 blocks
...

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