From 7306ea63fbf1d83b3ba8df1822a55d2e859997ab Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Sun, 31 May 2026 17:24:22 -0700 Subject: [PATCH] fix invalid free from tests debug allocator is strict about length matching --- yaml.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yaml.zig b/yaml.zig index d369d32e867be639b5d45eba5a3087f97cdecd5d..0cc41325a61e6143eb7f832e24938be2efb79333 100644 --- a/yaml.zig +++ b/yaml.zig @@ -87,7 +87,7 @@ pub const Item = union(enum) { pub const Sequence = []const Item; pub const Key = struct { - key: string, + key: [:0]const u8, value: Value, pub fn deinit(self: *const Key, alloc: std.mem.Allocator) void { -- 2.54.0