mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-12 10:22:12 +02:00
IO (Linux): fixes a possible fd leak
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user