fix memory leak in NativePaths.zig

This commit is contained in:
Techatrix 2022-08-17 21:28:11 +02:00 committed by Andrew Kelley
parent 7f0642b5d3
commit 79757f233d

View File

@ -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