From 840bfd3da81fde19580af036833d56a1821be841 Mon Sep 17 00:00:00 2001 From: Nick Anderson Date: Tue, 3 Jun 2025 08:07:41 -0500 Subject: [PATCH] Fixed file descriptor leak in sys.cpusockets Ticket: CFE-4536 Changelog: Title --- libenv/sysinfo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libenv/sysinfo.c b/libenv/sysinfo.c index aeb532fccd..536c88d165 100644 --- a/libenv/sysinfo.c +++ b/libenv/sysinfo.c @@ -3180,6 +3180,7 @@ static void GetCPUInfo(EvalContext *ctx) continue; } ssize_t n_read = FullRead(f, buffer, sizeof(buffer)); + close(f); if (n_read < 1) { continue;