Memory leak in getaddrinfo()

Bug #1740569 reported by Martin Konrad
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
glibc (Ubuntu)
New
Undecided
Unassigned

Bug Description

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).

Tags: artful
Revision history for this message
Martin Konrad (info-martin-konrad) wrote :
tags: added: artful
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.