Skip to content

Commit

Permalink
De-init arena allocator after program
Browse files Browse the repository at this point in the history
  • Loading branch information
booniepepper committed Jul 8, 2023
1 parent c19b774 commit 4d7c84b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const stdlib = @embedFile("stdlib.dt");

pub fn main() !void {
var arena = std.heap.ArenaAllocator.init(std.heap.page_allocator);
defer arena.deinit();

var machine = try DtMachine.init(arena.allocator());

Expand Down

0 comments on commit 4d7c84b

Please sign in to comment.