diff options
Diffstat (limited to 'osdep')
-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; |