From 4fdc7e1fe4b06124f46b66db2d89d0f70d91898c Mon Sep 17 00:00:00 2001 From: b0bleet <83914374+b0bleet@users.noreply.github.com> Date: Wed, 18 May 2022 11:18:50 +0000 Subject: [PATCH] Update main.zig --- src/main.zig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main.zig b/src/main.zig index 6ef2a3f49..2a55ea7bb 100644 --- a/src/main.zig +++ b/src/main.zig @@ -1454,8 +1454,7 @@ fn formattingHandler(arena: *std.heap.ArenaAllocator, id: types.RequestId, req: return try respondGeneric(id, null_result_response); }; - var process = try std.ChildProcess.init(&[_][]const u8{ zig_exe_path, "fmt", "--stdin" }, allocator); - defer process.deinit(); + var process = std.ChildProcess.init(&[_][]const u8{ zig_exe_path, "fmt", "--stdin" }, allocator); process.stdin_behavior = .Pipe; process.stdout_behavior = .Pipe;