| ... | ... | @@ -957,7 +957,6 @@ fn parseObject(self: *MachO, path: []const u8) ParseError!void { |
| 957 | 957 | |
| 958 | 958 | const gpa = self.base.comp.gpa; |
| 959 | 959 | const file = try std.fs.cwd().openFile(path, .{}); |
| 960 | | errdefer file.close(); |
| 961 | 960 | const handle = try self.addFileHandle(file); |
| 962 | 961 | const mtime: u64 = mtime: { |
| 963 | 962 | const stat = file.stat() catch break :mtime 0; |
| ... | ... | @@ -994,7 +993,6 @@ fn parseArchive(self: *MachO, lib: SystemLib, must_link: bool, fat_arch: ?fat.Ar |
| 994 | 993 | const gpa = self.base.comp.gpa; |
| 995 | 994 | |
| 996 | 995 | const file = try std.fs.cwd().openFile(lib.path, .{}); |
| 997 | | errdefer file.close(); |
| 998 | 996 | const handle = try self.addFileHandle(file); |
| 999 | 997 | |
| 1000 | 998 | var archive = Archive{}; |