Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 04 Mar 2017 20:33:56 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 217125] lib/libc/gen/fts.c resource leak in fts_build()
Message-ID:  <bug-217125-8-LvlAbI0T7B@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-217125-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-217125-8@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=217125

Conrad Meyer <cem@freebsd.org> changed:

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

--- Comment #1 from Conrad Meyer <cem@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.


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-217125-8-LvlAbI0T7B>