summaryrefslogtreecommitdiff
path: root/osdep/OSUtils.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-04-14 15:17:59 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-04-14 15:17:59 -0700
commit29a2175b7a7055ab851f5b921e26c51ffa547d07 (patch)
treeddf79b1beee61098572df038da09582b98751af9 /osdep/OSUtils.cpp
parent49d31613b91cf578d289086c28ea88c202c617d2 (diff)
downloadinfinitytier-29a2175b7a7055ab851f5b921e26c51ffa547d07.tar.gz
infinitytier-29a2175b7a7055ab851f5b921e26c51ffa547d07.zip
Fix missed closedir()
Diffstat (limited to 'osdep/OSUtils.cpp')
-rw-r--r--osdep/OSUtils.cpp2
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;