Re: [PATCH] objtool: fix resource leak in copy_file()
From: Josh Poimboeuf
Date: Thu Mar 20 2025 - 19:47:10 EST
On Thu, Mar 20, 2025 at 11:31:31PM +0000, Qasim Ijaz wrote:
> Close open file descriptors on error paths in copy_file() to prevent
> resource leaks when open(), fstat(), fchmod(), or sendfile() fail.
>
> Fixes: 5a406031d071 ("objtool: Add --output option")
> Signed-off-by: Qasim Ijaz <qasdev00@xxxxxxxxx>
Hi,
Thanks for the patch, but objtool is a short running process, so we
generally don't care about memory leaks.
--
Josh