static buffer to fix memory leaked str Signed-off-by: Blain Smith <rebelgeek@blainsmith.com>
1 files changed, 2 insertions(+), 1 deletions(-) M format/csv/reader.ha
M format/csv/reader.ha => format/csv/reader.ha +2 -1
@@ 35,7 35,8 @@ export fn read(r: *reader) ([]str | io::EOF | encoding::utf8::invalid | io::erro return read(r); }; let fieldend = fmt::asprintf("\"{}", r.delim); static let fieldendtmpl: [5]u8 = [0...]; let fieldend = fmt::bsprintf(fieldendtmpl, "\"{}", r.delim); let record: []str = []; for (true) {