diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-04-14 15:17:59 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-04-14 15:17:59 -0700 |
commit | 29a2175b7a7055ab851f5b921e26c51ffa547d07 (patch) | |
tree | ddf79b1beee61098572df038da09582b98751af9 /osdep/OSUtils.cpp | |
parent | 49d31613b91cf578d289086c28ea88c202c617d2 (diff) | |
download | infinitytier-29a2175b7a7055ab851f5b921e26c51ffa547d07.tar.gz infinitytier-29a2175b7a7055ab851f5b921e26c51ffa547d07.zip |
Fix missed closedir()
Diffstat (limited to 'osdep/OSUtils.cpp')
-rw-r--r-- | osdep/OSUtils.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/osdep/OSUtils.cpp b/osdep/OSUtils.cpp index f98f7e03..1fa2f8b0 100644 --- a/osdep/OSUtils.cpp +++ b/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; |