chore: frees memory allocated for cpu name

This commit is contained in:
utox39 committed 2025-02-27 16:53:26 +01:00
1 parent ff0ed75100
commit 74b4e44e98
1 file changed
+1
+1
View File
@@ -31,4 +31,5 @@ pub fn main() !void {
const cpu_info = try os_module.getCpuInfo(allocator); const cpu_info = try os_module.getCpuInfo(allocator);
try stdout.print("cpu: {s} ({})\n", .{ cpu_info.cpu_name, cpu_info.cpu_cores }); try stdout.print("cpu: {s} ({})\n", .{ cpu_info.cpu_name, cpu_info.cpu_cores });
try bw.flush(); try bw.flush();
allocator.free(cpu_info.cpu_name);
} }