Skip to content

Commit

Permalink
fix memory leak in NativePaths.zig
Browse files Browse the repository at this point in the history
  • Loading branch information
Techatrix authored and andrewrk committed Aug 17, 2022
1 parent 7f0642b commit 79757f2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/std/zig/system/NativePaths.zig
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ pub fn detect(allocator: Allocator, native_info: NativeTargetInfo) !NativePaths

if (native_target.os.tag != .windows) {
const triple = try native_target.linuxTriple(allocator);
defer allocator.free(triple);

const qual = native_target.cpu.arch.ptrBitWidth();

// TODO: $ ld --verbose | grep SEARCH_DIR
Expand Down

0 comments on commit 79757f2

Please sign in to comment.