Date: Sun, 21 Apr 2024 05:18:06 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 278476] fd and memory leak in ls Message-ID: <bug-278476-227-EjBSwAutLx@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-278476-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | previous in thread | raw e-mail
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.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-278476-227-EjBSwAutLx>
