mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-23 09:25:32 +00:00
Fix missed closedir()
This commit is contained in:
@ -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);
|
r[std::string(dptr->d_name)] = (dptr->d_type == DT_DIR);
|
||||||
} else break;
|
} else break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
closedir(d);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return r;
|
return r;
|
||||||
|
Reference in New Issue
Block a user