IO (Linux): fixes a possible fd leak

This commit is contained in:
李通洲
2026-05-12 00:08:27 +08:00
parent 1942dce980
commit 470e3b4e57
+1
View File
@@ -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
}