Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix memory leak in NativePaths.zig #12469

Merged
merged 1 commit into from Aug 17, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/std/zig/system/NativePaths.zig
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