aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-05-04 11:14:06 +0900
committernsfisis <nsfisis@gmail.com>2026-05-04 11:14:06 +0900
commit6687a3fc112581e88f4f568bc509af0c09ba87d0 (patch)
tree0e1f4d2fa5d7a7b10c0601b9f83417c8d9160ef0
parente18164962b45c549ea8b9d663d5148d90b071337 (diff)
downloadzgjq-main.tar.gz
zgjq-main.tar.zst
zgjq-main.zip
fix #2HEADmain
-rw-r--r--src/main.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.zig b/src/main.zig
index 40a18ba..b6553dd 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -47,6 +47,7 @@ pub fn main(init: std.process.Init) !void {
const stdout = std.Io.File.stdout();
while (try runtime.next()) |result| {
+ defer result.deinit(allocator);
const output = try jv.stringify(allocator, result);
defer allocator.free(output);
try stdout.writeStreamingAll(init.io, output);