Public bug reported:

On artful (glibc 2.26-0ubuntu2) Valgrind reports a memory leak for the
attached example program:

==25343== 4,096 bytes in 1 blocks are definitely lost in loss record 7 of 7
==25343==    at 0x4C2FB0F: malloc (in 
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==25343==    by 0x5A39647: ???
==25343==    by 0x5A4C279: ???
==25343==    by 0x5A5811C: ???
==25343==    by 0x4F355DE: gaih_inet.constprop.7 (getaddrinfo.c:790)
==25343==    by 0x4F375C6: getaddrinfo (getaddrinfo.c:2304)
==25343==    by 0x108795: main (in /tmp/getaddrinfo)

This issue is reported with both the Valgrind version shipped with
artful as well as with the latest development version.

Note that the development version of Valgrind does not report a leak on
Debian 9 (glibc 2.24-11+deb9u1).

** Affects: glibc (Ubuntu)
     Importance: Undecided
         Status: New

** Attachment added: "getaddrinfo.c"
   
https://bugs.launchpad.net/bugs/1740569/+attachment/5028961/+files/getaddrinfo.c

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1740569

Title:
  Memory leak in getaddrinfo()

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1740569/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to