Skip to content

Commit fda9a32

Browse files
kubkonandrewrk
authored andcommitted
macho: fix double free
1 parent 3661133 commit fda9a32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/link/MachO.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1290,7 +1290,7 @@ fn parseDependentDylibs(self: *MachO) !void {
12901290
}
12911291
try umbrella.rpaths.ensureUnusedCapacity(gpa, dep_dylib.rpaths.keys().len);
12921292
for (dep_dylib.rpaths.keys()) |rpath| {
1293-
umbrella.rpaths.putAssumeCapacity(rpath, {});
1293+
umbrella.rpaths.putAssumeCapacity(try gpa.dupe(u8, rpath), {});
12941294
}
12951295
}
12961296
} else {

0 commit comments

Comments
 (0)