read_files_in_dir: closedir before return (#20903)

old-commit-hash: c08ee575f82b1040d99e90e44449bbb83307d8a5
This commit is contained in:
Dean Lee
2021-05-15 08:33:46 +08:00
committed by GitHub
parent 8559ab5ebd
commit badc577e1d

View File

@@ -83,6 +83,7 @@ int read_files_in_dir(std::string path, std::map<std::string, std::string> *cont
}
}
closedir(d);
return 0;
}