| ... | ... | @@ -148,6 +148,7 @@ pub const TokenList = []const Token; |
| 148 | 148 | pub fn parse(alloc: *std.mem.Allocator, input: string) !Document { |
| 149 | 149 | var parser: c.yaml_parser_t = undefined; |
| 150 | 150 | _ = c.yaml_parser_initialize(&parser); |
| 151 | defer c.yaml_parser_delete(&parser); |
| 151 | 152 | |
| 152 | 153 | const lines = try u.split(input, "\n"); |
| 153 | 154 | |
| ... | ... | @@ -170,8 +171,6 @@ pub fn parse(alloc: *std.mem.Allocator, input: string) !Document { |
| 170 | 171 | } |
| 171 | 172 | } |
| 172 | 173 | |
| 173 | | c.yaml_parser_delete(&parser); |
| 174 | | |
| 175 | 174 | const p = &Parser{ |
| 176 | 175 | .alloc = alloc, |
| 177 | 176 | .tokens = all_events.items, |