From ff0ed75100177722998497d455ff11f89ce24b94 Mon Sep 17 00:00:00 2001 From: utox39 Date: Thu, 27 Feb 2025 15:55:55 +0100 Subject: [PATCH] chore: frees memory allocated for shell info --- src/main.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.zig b/src/main.zig index da7abb4..f1e212b 100644 --- a/src/main.zig +++ b/src/main.zig @@ -26,6 +26,7 @@ pub fn main() !void { const shell = try os_module.getShell(allocator); try stdout.print("Shell: {s}", .{shell}); try bw.flush(); + allocator.free(shell); const cpu_info = try os_module.getCpuInfo(allocator); try stdout.print("cpu: {s} ({})\n", .{ cpu_info.cpu_name, cpu_info.cpu_cores });