mirror of
https://github.com/ziglang/zig.git
synced 2025-12-30 18:13:19 +00:00
macho: fix double free
This commit is contained in:
parent
3661133f98
commit
fda9a32fef
@ -1290,7 +1290,7 @@ fn parseDependentDylibs(self: *MachO) !void {
|
||||
}
|
||||
try umbrella.rpaths.ensureUnusedCapacity(gpa, dep_dylib.rpaths.keys().len);
|
||||
for (dep_dylib.rpaths.keys()) |rpath| {
|
||||
umbrella.rpaths.putAssumeCapacity(rpath, {});
|
||||
umbrella.rpaths.putAssumeCapacity(try gpa.dupe(u8, rpath), {});
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user