fixed file descriptor leak
This commit is contained in:
parent
03f02d9856
commit
6bbcd30a36
1 changed files with 2 additions and 0 deletions
|
@ -186,6 +186,8 @@ std::string get_dir(const std::string& dir_path)
|
|||
|
||||
if(dir == NULL)
|
||||
return "";
|
||||
|
||||
closedir(dir);
|
||||
#endif
|
||||
|
||||
return dir_path;
|
||||
|
|
Loading…
Add table
Reference in a new issue