| ... | ... | @@ -1535,7 +1535,7 @@ fn parseInternal(comptime T: type, token: Token, tokens: *TokenStream, options: |
| 1535 | 1535 | const allocator = options.allocator orelse return error.AllocatorRequired; |
| 1536 | 1536 | switch (ptrInfo.size) { |
| 1537 | 1537 | .One => { |
| 1538 | | const r: T = allocator.create(ptrInfo.child); |
| 1538 | const r: T = try allocator.create(ptrInfo.child); |
| 1539 | 1539 | r.* = try parseInternal(ptrInfo.child, token, tokens, options); |
| 1540 | 1540 | return r; |
| 1541 | 1541 | }, |
| ... | ... | @@ -1629,7 +1629,7 @@ pub fn parseFree(comptime T: type, value: T, options: ParseOptions) void { |
| 1629 | 1629 | switch (ptrInfo.size) { |
| 1630 | 1630 | .One => { |
| 1631 | 1631 | parseFree(ptrInfo.child, value.*, options); |
| 1632 | | allocator.destroy(v); |
| 1632 | allocator.destroy(value); |
| 1633 | 1633 | }, |
| 1634 | 1634 | .Slice => { |
| 1635 | 1635 | for (value) |v| { |