fixed file descriptor leak

This commit is contained in:
Dave White 2004-08-13 02:02:46 +00:00
parent 03f02d9856
commit 6bbcd30a36

View file

@ -186,6 +186,8 @@ std::string get_dir(const std::string& dir_path)
if(dir == NULL)
return "";
closedir(dir);
#endif
return dir_path;