diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2023-08-30 12:30:17 +0200 |
|---|---|---|
| committer | Jakub Konka <kubkon@jakubkonka.com> | 2023-08-30 12:30:17 +0200 |
| commit | f21245f5e773c61a8d1f5fb91309faadf0d2f103 (patch) | |
| tree | 25a2134dd570cee064f16fa0bb1144619e62cce0 /src/link/MachO/Dylib.zig | |
| parent | ea9f2513a3b57aa4fda7825ca407672ce8d9da31 (diff) | |
| download | zig-f21245f5e773c61a8d1f5fb91309faadf0d2f103.tar.gz zig-f21245f5e773c61a8d1f5fb91309faadf0d2f103.zip | |
macho: refactor resolving and parsing dependent dylibs
Diffstat (limited to 'src/link/MachO/Dylib.zig')
| -rw-r--r-- | src/link/MachO/Dylib.zig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/link/MachO/Dylib.zig b/src/link/MachO/Dylib.zig index 581f804f13..91411dc572 100644 --- a/src/link/MachO/Dylib.zig +++ b/src/link/MachO/Dylib.zig @@ -1,3 +1,4 @@ +path: []const u8, id: ?Id = null, weak: bool = false, /// Header is only set if Dylib is parsed directly from a binary and not a stub file. @@ -106,6 +107,7 @@ pub fn isDylib(file: std.fs.File, fat_offset: u64) bool { } pub fn deinit(self: *Dylib, allocator: Allocator) void { + allocator.free(self.path); for (self.symbols.keys()) |key| { allocator.free(key); } |
