diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2026-02-12 15:36:48 +1100 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2026-02-12 15:36:48 +1100 |
| commit | b0bd7c0be9fdce732ed10b90b68ea7d631f4e8ae (patch) | |
| tree | d53f3c7daa67e146dadefe1236c0490622688f24 /tools/odinfmt/main.odin | |
| parent | 6f33789343f66b8f239de1266242c5487ab2ac03 (diff) | |
Add defers for destroying walkers
Diffstat (limited to 'tools/odinfmt/main.odin')
| -rw-r--r-- | tools/odinfmt/main.odin | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/odinfmt/main.odin b/tools/odinfmt/main.odin index 54eab88..69ad5cf 100644 --- a/tools/odinfmt/main.odin +++ b/tools/odinfmt/main.odin @@ -117,6 +117,7 @@ main :: proc() { } else if os.is_dir(args.path) { files: [dynamic]string w := os.walker_create(args.path) + defer os.walker_destroy(&w) for info in os.walker_walk(&w) { if info.type == .Directory { continue |