| author | |
| committer | |
| log | 61c5d8f8f19d4321a492cb8a1adc4d221024f7d9 |
| tree | 4433b4915425978afe6a10918105c3af37affd32 |
| parent | bb84c87a4788ffed5478397549b363fe514658f3 |
1 files changed, 2 insertions(+), 4 deletions(-)
lib/std/fs.zig+2-4| ... | ... | @@ -887,10 +887,8 @@ pub const Dir = struct { |
| 887 | 887 | } |
| 888 | 888 | |
| 889 | 889 | pub fn deinit(self: *Walker) void { |
| 890 | while (self.stack.popOrNull()) |*item| { | |
| 891 | if (self.stack.items.len != 0) { | |
| 892 | item.iter.dir.close(); | |
| 893 | } | |
| 890 | for (self.stack.items) |*item| { | |
| 891 | item.iter.dir.close(); | |
| 894 | 892 | } |
| 895 | 893 | self.stack.deinit(); |
| 896 | 894 | self.name_buffer.deinit(); |