Skip to content

Commit

Permalink
macho: fix UndefRefs.deinit method
Browse files Browse the repository at this point in the history
  • Loading branch information
kubkon committed Oct 9, 2024
1 parent cf0c3b1 commit cede569
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/MachO.zig
Original file line number Diff line number Diff line change
Expand Up @@ -3308,7 +3308,10 @@ pub const UndefRefs = union(enum) {
refs: std.ArrayListUnmanaged(Ref),

pub fn deinit(self: *UndefRefs, allocator: Allocator) void {
self.refs.deinit(allocator);
switch (self.*) {
.refs => |*refs| refs.deinit(allocator),
else => {},
}
}
};

Expand Down

0 comments on commit cede569

Please sign in to comment.