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