commit: 7d35c5b427520f2d944f877a4b19b771ae908944
parent 0c932b3103a5cd40019264d8371bc558e254e4f5
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Thu, 23 Jun 2022 04:18:23 +0200
check_dir: defer os::finish after os::iter
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/main.ha b/main.ha
@@ -79,6 +79,7 @@ fn check_dir(dirname: str, ignoring: bool) (void | errors::invalid) = {
fmt::errorfln("os::iter({}): {}", dirname, fs::strerror(err))!;
return errors::invalid;
};
+ defer os::finish(iter);
for (true) {
const ent = match (fs::next(iter)) {