diff --git a/doc/docgen.zig b/doc/docgen.zig index 128314696e0ee0a9c624d0ad0a650661b3e78fc3..cc4993d65fbc2f6a7817ad6da4dde476e48b36d6 100644 --- a/doc/docgen.zig +++ b/doc/docgen.zig @@ -673,6 +673,7 @@ const TermState = enum { test "term color" { const input_bytes = "A\x1b[32;1mgreen\x1b[0mB"; const result = try termColor(std.testing.leak_count_allocator, input_bytes); + defer std.testing.leak_count_allocator.free(result); testing.expectEqualSlices(u8, "AgreenB", result); }