[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#818178: libc6: getaddrinfo/freeadrinfo memory leak



On 2016-03-14 20:09, Samuel Thibault wrote:
> Aurelien Jarno, on Mon 14 Mar 2016 20:01:44 +0100, wrote:
> > While this is definitely a bug, the leakage happens only once per
> > nameserver and per program, and doesn't increase with the number of
> > calls to getaddrinfo. Moreover it is actually useful to keep this
> > information up to the end of the program and to avoid parsing
> > /etc/resolv.conf multiple times. I am therefore decreasing the
> > severity to minor.
> 
> I believe glibc already has several of such behaviors, which are already
> "suppress"ed by valgrind, so it'd be a matter of adding a suppression
> entry for this?

valgrind calls __libc_freeres for deallocating the remaining memory.
Unfortunately due to a bug in the libc, it doesn't work for this
resource. We have a patch for that has been proposed on the mailing
list, I'll add it for the next upload.

Aurelien

-- 
Aurelien Jarno                          GPG: 4096R/1DDD8C9B
aurelien@aurel32.net                 http://www.aurel32.net


Reply to: