refactor: Allocations now use the temp_allocator more frequently.

This commit is contained in:
2026-06-19 07:50:05 -04:00
parent 84764d03a6
commit a03d388a0c
4 changed files with 29 additions and 22 deletions

View File

@@ -64,7 +64,7 @@ cmd_sync :: proc(cmd: ^Command) {
render_table(cmd.out, headers, table_rows[:])
} else {
data, marshal_err := json.marshal(results[:])
data, marshal_err := json.marshal(results[:], allocator = context.temp_allocator)
if marshal_err != nil {
fmt.wprintf(cmd.err, "Error marshaling JSON: %v\n", marshal_err, flush = false)
return