Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Apr 2022 16:04:59 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 259294] [libc] add a freeres function
Message-ID:  <bug-259294-227-wIXELBEHWH@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-259294-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-259294-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D259294

--- Comment #5 from Paul Floyd <pjfloyd@wanadoo.fr> ---
(In reply to Mark Johnston from comment #4)

I guess there are probably several other things that would need freeing.

GNU libc looks like it calls about 5 functions from __libc_freeres: IO, dl,
thread, and a few other more anonymous frees.

https://code.woboq.org/userspace/glibc/malloc/set-freeres.c.html

In Valgrind I just added suppressions whenever I saw anything that was a
one-off allocation in libc. I haven't looked thoroughly at the libc code or
written exhaustive Valgrind libc leak tests.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-259294-227-wIXELBEHWH>