[Bug 278476] fd and memory leak in ls
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 278476] fd and memory leak in ls"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
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.