Browse Source

Fix missed closedir()

Adam Ierymenko 10 years ago
parent
commit
29a2175b7a
1 changed files with 2 additions and 0 deletions
  1. 2 0
      osdep/OSUtils.cpp

+ 2 - 0
osdep/OSUtils.cpp

@@ -106,6 +106,8 @@ std::map<std::string,bool> OSUtils::listDirectory(const char *path)
 				r[std::string(dptr->d_name)] = (dptr->d_type == DT_DIR);
 		} else break;
 	}
+
+	closedir(d);
 #endif
 
 	return r;