mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-16 20:16:54 +02:00
Fix missed closedir()
This commit is contained in:
parent
49d31613b9
commit
29a2175b7a
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue