Skip to content

Commit e110527

Browse files
Gliniakgibbed
authored andcommitted
[Base] ListFiles: Prevent leakage of file descriptors
1 parent 6ee2e37 commit e110527

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/xenia/base/filesystem_posix.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ std::vector<FileInfo> ListFiles(const std::filesystem::path& path) {
234234
}
235235
result.push_back(info);
236236
}
237-
237+
closedir(dir);
238238
return result;
239239
}
240240

0 commit comments

Comments
 (0)