mirror of
https://github.com/sbrow/envr.git
synced 2026-06-27 18:48:33 -04:00
refactor: Allocations now use the temp_allocator more frequently.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user