Merge branch 'zig-0.14'

This commit is contained in:
CJ van den Berg 2025-08-21 10:41:23 +02:00
commit 2c28091fe5
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
4 changed files with 8 additions and 2 deletions

View file

@ -289,6 +289,7 @@ pub const DeserializeError = error{
pub fn fromCbor(cb: []const u8, allocator: std.mem.Allocator) DeserializeError!struct { *TSQuery, *std.heap.ArenaAllocator } {
var arena = try allocator.create(std.heap.ArenaAllocator);
errdefer allocator.destroy(arena);
arena.* = std.heap.ArenaAllocator.init(allocator);
errdefer arena.deinit();
const query = try arena.allocator().create(TSQuery);