Memory leak in getaddrinfo()
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/
==25343== by 0x5A39647: ???
==25343== by 0x5A4C279: ???
==25343== by 0x5A5811C: ???
==25343== by 0x4F355DE: gaih_inet.
==25343== by 0x4F375C6: getaddrinfo (getaddrinfo.
==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: | added: artful |