chore: frees memory allocated for cpu name

This commit is contained in:
utox39
2025-02-27 16:53:26 +01:00
parent ff0ed75100
commit 74b4e44e98

View File

@@ -31,4 +31,5 @@ pub fn main() !void {
const cpu_info = try os_module.getCpuInfo(allocator);
try stdout.print("cpu: {s} ({})\n", .{ cpu_info.cpu_name, cpu_info.cpu_cores });
try bw.flush();
allocator.free(cpu_info.cpu_name);
}