[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);
|
||||
}
|
||||
|
||||
closedir(dir);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue