From 470e3b4e5774eef17eedc0f49871d9775a5d42c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Tue, 12 May 2026 00:08:27 +0800 Subject: [PATCH] IO (Linux): fixes a possible fd leak --- src/common/impl/io_unix.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/impl/io_unix.c b/src/common/impl/io_unix.c index a7e0b041d..c760861ef 100644 --- a/src/common/impl/io_unix.c +++ b/src/common/impl/io_unix.c @@ -259,6 +259,7 @@ void listFilesRecursively(uint32_t baseLength, FFstrbuf* folder, uint8_t indenta FF_AUTO_CLOSE_DIR DIR* dir = fdopendir(dfd); if (dir == NULL) { + close(dfd); return; // Should not happen }