[Bug 217125] lib/libc/gen/fts.c resource leak in fts_build()

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Mar 4 20:33:56 UTC 2017


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

Conrad Meyer <cem at freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |cem at freebsd.org
           Assignee|freebsd-bugs at FreeBSD.org    |cem at freebsd.org

--- Comment #1 from Conrad Meyer <cem at freebsd.org> ---
I agree it's worth adding based on similar logic in fts_build after fts_palloc
failures.

Such a call shouldn't hurt even if the 'head' list is always empty (aside from
an extra branch overhead in an uncommon and terminal case).

This is all old old code dating back to the BSD 4.4 import. :-(

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


More information about the freebsd-bugs mailing list