[Bug 259294] [libc] add a freeres function

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 13 Apr 2022 16:04:59 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259294

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

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