[Bug 278476] fd and memory leak in ls

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 21 Apr 2024 05:18:06 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278476

Daniel Tameling <tamelingdaniel@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tamelingdaniel@gmail.com

--- Comment #4 from Daniel Tameling <tamelingdaniel@gmail.com> ---
The cause of the leak is that fts_open is called in the traverse function
without a final fts_close:
https://github.com/freebsd/freebsd-src/blob/main/bin/ls/ls.c#L636
After finishing the traverse function ls exits.

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