read_files_in_dir: closedir before return (#20903)

albatross
Dean Lee 2021-05-15 08:33:46 +08:00 committed by GitHub
parent e5f93ef142
commit c08ee575f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

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;
}