generated from general-packages/pika-pkg-template
Refine memory management and system info handling
All checks were successful
PikaOS Package Build & Release (amd64-v3) / build (push) Successful in 46s
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:
parent
cede8a99cd
commit
829d085d1f
2
.github/release-nest-v3
vendored
2
.github/release-nest-v3
vendored
@ -1 +1 @@
|
||||
1
|
||||
2
|
@ -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
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user