Refine memory management and system info handling
All checks were successful
PikaOS Package Build & Release (amd64-v3) / build (push) Successful in 46s

- Continued transition to arena allocator by removing unnecessary deinitialization.
- Improved memory management practices in the main Zig file.
This commit is contained in:
ferreo 2024-12-01 15:45:48 +00:00
parent cede8a99cd
commit 829d085d1f
3 changed files with 2 additions and 3 deletions

View File

@ -1 +1 @@
1
2

View File

@ -1,4 +1,4 @@
pikafetch (0.2.0-101pika2) pika; urgency=medium
pikafetch (0.2.0-101pika3) pika; urgency=medium
* Move to zig nightly, remove all use of libc, switch to using arena allocator

View File

@ -5,7 +5,6 @@ const terminal = @import("display/terminal.zig");
pub fn main() !void {
var arena = std.heap.ArenaAllocator.init(std.heap.page_allocator);
defer arena.deinit();
const allocator = arena.allocator();
var info = try system_info.SystemInfo.init(allocator);