Re: [PATCH] nm: Fix descriptor leak

2024-03-28 Thread Mark Wielaard
Hi, On Thu, Mar 28, 2024 at 11:49:58PM +0300, Maks Mishin wrote: > The descriptor 'dwfl_fd' is created at nm.c:1278 by calling > function 'dup' and lost at nm.c:1593. Sorry, I don't follow, the code at nm.c:1278 says: /* Duplicate an fd for dwfl_report_offline to swallow. */

[PATCH] nm: Fix descriptor leak

2024-03-28 Thread Maks Mishin
The descriptor 'dwfl_fd' is created at nm.c:1278 by calling function 'dup' and lost at nm.c:1593. Found by RASU JSC. Signed-off-by: Maks Mishin --- src/nm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/nm.c b/src/nm.c index 3675f59b..fee397dd 100644 --- a/src/nm.c +++ b/src/nm.c @@