mirror of
https://github.com/xenia-project/xenia.git
synced 2025-12-06 07:12:03 +01:00
[Base] ListFiles: Prevent leakage of file descriptors
This commit is contained in:
parent
6ee2e3718f
commit
e110527bfe
|
|
@ -234,7 +234,7 @@ std::vector<FileInfo> ListFiles(const std::filesystem::path& path) {
|
||||||
}
|
}
|
||||||
result.push_back(info);
|
result.push_back(info);
|
||||||
}
|
}
|
||||||
|
closedir(dir);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue