Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
IntegratedQuantum authored Jan 24, 2025
1 parent d3dc896 commit a70f775
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/assets.zig
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ var commonModels: std.StringHashMap([]const u8) = undefined;
fn readDefaultFile(allocator: NeverFailingAllocator, dir: std.fs.Dir) !ZonElement {
if (dir.openFile("_defaults.zig.zon", .{})) |val| {
const string = try val.readToEndAlloc(main.stackAllocator.allocator, std.math.maxInt(usize));
defer main.stackAllocator.free(string);
defer main.stackAllocator.free(string)

return ZonElement.parseFromString(allocator, string);
} else |err| {
Expand Down

0 comments on commit a70f775

Please sign in to comment.