[Bug 195128] Memory leaks in lib/libpam/modules due to memory handling with login_getcapstr, et al

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Nov 22 13:56:27 UTC 2014


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195128

--- Comment #6 from darius at dons.net.au ---
Created attachment 149711
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=149711&action=edit
Fix & proto-test case

I tried writing a test based on
http://cvsweb.netbsd.org/bsdweb.cgi/src/tests/lib/libc/gen/t_dir.c?rev=1.6&content-type=text/x-cvsweb-markup&only_with_tag=MAIN
but that relies on malloc() calling sbrk() which isn't true on FreeBSD.

I used the jemalloc stats but it shows more deallocated than allocated so
either I'm using it wrong or the stats aren't useful for this purpose.

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


More information about the freebsd-bugs mailing list