This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug nss/22184] Memory leak(s) in getaddrinfo_a
- From: "tim.ruehsen at gmx dot de" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Fri, 22 Sep 2017 14:14:17 +0000
- Subject: [Bug nss/22184] Memory leak(s) in getaddrinfo_a
- Auto-submitted: auto-generated
- References: <bug-22184-131@http.sourceware.org/bugzilla/>
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.